D3DINDEXBUFFER_DESC
Describes an index buffer.
Type D3DINDEXBUFFER_DESC
Format As CONST_D3DFORMAT
Pool As CONST_D3DPOOL
Size As Long
Type As CONST_D3DRESOURCETYPE
Usage As Long
End Type
Members
- Format
- A member of the CONST_D3DFORMAT enumeration, describing the surface format of the index buffer data.
- Pool
- A member of the CONST_D3DPOOL enumeration, specifying the class of memory allocated for this index buffer.
- Size
- The size of the index buffer, in bytes.
- Type
- A member of the CONST_D3DRESOURCETYPE enumeration, identifying this resource as an index buffer.
- Usage
- A combination of one or more of the following flags defined by the CONST_D3DUSAGEFLAGS enumeration, specifying the usage for this resource.
- D3DUSAGE_DONOTCLIP
- Set to indicate that the index buffer content will never require clipping.
- D3DUSAGE_HOSURFACES
- Set to indicate when the index buffer is to be used for drawing high-order primitives.
- 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 index buffer is to be used for drawing N patches.
- D3DUSAGE_POINTS
- Set to indicate when the index buffer is to be used for drawing point sprites or indexed point lists.
- D3DUSAGE_SOFTWAREPROCESSING
- Set to indicate that the buffer is to be used with software processing.
- D3DUSAGE_WRITEONLY
- Informs the system that the application writes only to the index buffer. Using this flag enables the driver to choose the best memory location for efficient write operations and rendering. Attempts to read from an index buffer that is created with this capability can result in degraded performance.
See Also
Direct3DIndexBuffer8.GetDesc