Platform SDK: DirectX

Direct3DDevice7.GetTextureFormatsEnum

The Direct3DDevice7.GetTextureFormatsEnum method retrieves a Direct3DEnumPixelFormats object.

object.GetTextureFormatsEnum() As Direct3DEnumPixelFormats

Parameters

object
Object expression that resolves to a Direct3DDevice7 object.

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

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

Remarks

Use the methods of the Direct3DEnumPixelFormats object to retrieve information about the pixel formats that the device supports for textures.