MPxVertexGenerators are registered with a unique buffer name. The name signifies the name of the custom stream the generator can produce. When an MPxShaderOverride or custom renderer uses an effect with custom input streams they can provide a unique name in the MVertexBufferDescriptor and a registered MPxVertexBufferGenerator will be used to produce the custom stream for a given shape using the incoming requirements held in the MVertexBuffer.
createVertexStream() is called to allow the generator to fill in the missing vertex data Access the requirements for the requested stream through vertexBuffer.descriptor(). Populate the stream using vertexBuffer.acquire() and vertexBuffer.commit().
This function is called to allow the vertex buffer generator to provide its vertex indexing information as well as the space the vertices are in. More...
This function is called to allow the vertex buffer generator to provide its vertex indexing information as well as the space the vertices are in.
The indexing and the component type are stored in the sourceIndexing argument. This indexing information is to allow the system to identify any potential vertex sharing that is common across all vertex requirements.
Parameters
[in]
object
The object being evaluated.
[out]
sourceIndexing
Vertex index mapping in the declared MComponentDataIndexing::MComponentType space.
This method gets called to allow the generator to fill in the data for a custom vertex stream.
Use the requirements in the vertexBuffer to get the description of the stream. Use vertexBuffer.acquire() and vertexBuffer.commit() to fill the buffer.
Parameters
[in]
object
The dag object being evaluated.
[in,out]
vertexBuffer
The vertex buffer to fill.
[in]
targetIndexing
Vertex index mapping from targetIndexing.getComponentType() space to vertex buffer space.
[in]
sharedIndexing
Vertex index mapping in the declared MComponentDataIndexing::MComponentType space.
[in]
sourceStreams
Array of Vertex Buffers that can be used to create the new stream.
const char * className
(
)
static
Returns the name of this class.
Returns
Name of this class.
The documentation for this class was generated from the following files: