Other Direct3D Constants

SDK Version

#define
D3D_SDK_VERSION
D3D9b_SDK_VERSION

 

These #defines are declared in d3d9.h.

Other Constants

The following table lists constants that are used internally:

#define Value Description
D3D_MAX_SIMULTANEOUS_RENDERTARGETS 4 The maximum number of rendertargets.
D3DDMAPSAMPLER 256 The maximum number of displacement map samples.
D3DDP_MAXTEXCOORD 8 The maximum number of texture coordinates.
MAXD3DDECLLENGTH 64 (does not include "end" marker vertex element) Maximum number of elements in a vertex declaration.
MAXD3DDECLUSAGEINDEX 15 The maximum index (0-15) that can be used in a vertex declaration.

 

These #defines are declared in d3d9types.h.

Constant Information

Requirement Value
Minimum operating system Windows 98

 

Direct3D Constants