MPxIndexBufferMutator Class Reference
#include <MPxIndexBufferMutator.h>
Base class for user defined index buffer mutators.
Implementations of MPxIndexBufferMutator must be registered with Maya through MDrawRegistry.
MPxIndexBufferMutators are registered with a unique mutator type name. The name signifies the name of the custom index buffer the mutator can produce. When an MPxShaderOverride or custom renderer uses an effect with custom index buffer mutator they can provide a MIndexBufferDescriptor with the desired mutator name. A registered MPxIndexBufferMutator will be used to mutate the existing index buffer.
This method gets called to allow the generator to mutate the data for a custom index stream using information stored in the vertex buffers.
- Parameters
-
[in] | sourceIndexBuffers | Current values for the index buffers. |
[in] | vertexBuffers | All vertex buffers generated for this primitive. |
[out] | indexBuffer | The index buffer to fill. |
[out] | primitiveStride | The stride of the generated indexing, only valid when the returned primitive type is kPatch. |
- Returns
- The type of primitive of the generated indexing.
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:
- MPxIndexBufferMutator.h
- MPxIndexBufferMutator.cpp