Platform SDK: DirectX

Direct3D7.GetEnumZBufferFormats

The Direct3D7.GetEnumZBufferFormats method creates a Direct3DEnumPixelFormats object.

object.GetEnumZBufferFormats( _ 
    guid As String) As Direct3DEnumPixelFormats

Parameters

object
Object expression that resolves to a Direct3D7 object.
guid
A globally unique identifier for the device whose depth-buffer formats will be enumerated.

Return Values

If the method succeeds, a reference to a Direct3DEnumPixelFormats object is returned.

Error Codes

If the method fails, an error is raised and Err.Number may be set to one of the following values:

DDERR_INVALIDOBJECT
DDERR_INVALIDPARAMS
DDERR_NOZBUFFERHW
DDERR_OUTOFMEMORY

For information on trapping errors, see the Visual Basic Error Trapping topic.