This class gives a complete description of a vertex buffer and is used by MGeometry, MVertexBuffer and MGeometryRequirements to simplify management of vertex buffer attributes.
Note that not all combinations of semantics, data types and dimensions are currently supported. Attempts to create vertex buffers with unsupported attributes will fail.
Get the semantic name of the buffer The semanticName is used to identify a custom vertex stream request in order to fill the stream with the appropriate data requested by a shader override. More...
Set the semantic name of the buffer The semanticName is used to identify a custom vertex stream request in order to fill the stream with the appropriate data requested by a shader override. More...
Get the semantic name of the buffer The semanticName is used to identify a custom vertex stream request in order to fill the stream with the appropriate data requested by a shader override.
Set the semantic name of the buffer The semanticName is used to identify a custom vertex stream request in order to fill the stream with the appropriate data requested by a shader override.
Set the offset of the vertex element in an interleaved vertex buffer.
User-setting of this value is only supported when using custom client buffers via resourceHandle(void*).
Vertex fields in shared, interleaved vertex buffers should be given the same resourceHandle pointer. Interleaved vertex formats must be close-packed, with no extra space in between defined fields.
Parameters
[in]
o
The new offset of the vertex field, in number of 4-byte words (floats).
int stride
(
)
const
Get the stride of the vertex buffer.
Note user-setting of this value is not currently supported. The value returned by this method is currently only valid in the context of MPxShaderOverride::draw().