D3DVERTEXBUFFER_DESC
Describes a vertex buffer.
typedef struct _D3DVERTEXBUFFER_DESC {
D3DFORMAT Format;
D3DRESOURCETYPE Type;
DWORD Usage;
D3DPOOL Pool;
UINT Size;
DWORD FVF;
} D3DVERTEXBUFFER_DESC;
Members
- Format
- Member of the D3DFORMAT enumerated type, describing the surface format of the vertex buffer data.
- Type
- Member of the D3DRESOURCETYPE enumerated type, identifying this resource as a vertex buffer.
- Usage
- Combination of one or more of the following flags, specifying the usage for this resource.
- D3DUSAGE_DONOTCLIP
- Set to indicate that the vertex buffer content will never require clipping.
- D3DUSAGE_RTPATCHES
- Set to indicate when the vertex buffer is to be used for drawing high-order primitives.
- D3DUSAGE_NPATCHES
- Set to indicate when the vertex buffer is to be used for drawing N patches.
- D3DUSAGE_POINTS
- Set to indicate when the vertex buffer is to be used for drawing point sprites or indexed point lists.
- D3DUSAGE_SOFTWAREPROCESSING
- Set to indicate that the vertex buffer is to be used with software vertex processing.
- D3DUSAGE_WRITEONLY
- Informs the system that the application writes only to the vertex buffer. Using this flag enables the driver to choose the best memory location for efficient write operations and rendering. Attempts to read from a vertex buffer that is created with this capability can result in degraded performance.
- Pool
- Member of the D3DPOOL enumerated type, specifying the class of memory allocated for this vertex buffer.
- Size
- Size of the vertex buffer, in bytes
- FVF
- Combination of flexible vertex format flags that describes the vertex format of the vertices in this buffer.
Header: Declared in D3d8types.h.
See Also
IDirect3DVertexBuffer8::GetDesc