C++ API Reference
|
Store GPU Representation of geometry data. More...
#include <MPxGPUDeformer.h>
Public Member Functions | |
virtual void | setBuffer (const MGPUDeformerBuffer &) |
Store an MGPUDeformerBuffer. More... | |
virtual MGPUDeformerBuffer | getBuffer (const MUniqueString &name) const |
Retrieve the MGPUDeformerBuffer with the given name. More... | |
virtual MGPUDeformerBuffer | getBuffer (const MUniqueString &name, const MPlug &plug) const |
Retrieve the MGPUDeformerBuffer with the given name and plug. More... | |
MGPUDeformerData (void *impl) | |
Constructs an MGPUDeformerData from an existing implementation object. More... | |
MGPUDeformerData (const MGPUDeformerData &other) | |
Copy constructs an MGPUDeformerData. | |
virtual | ~MGPUDeformerData () |
Destructor. | |
Store GPU Representation of geometry data.
MGPUDeformerData is the GPU representation of geometry data used in MPxGPUDeformer. MGPUDeformerData::setBuffer() stores an MGPUDeformerBuffer object. getBuffer() can be used to retrieve this buffer by name & plug.
Data stored in MGPUDeformerData is not owned by MGPUDeformerData, ownership remains with the allocator of the data and deleting an MGPUDeformerData does not automatically delete any associated MGPUDeformerBuffer objects.
MGPUDeformerData | ( | void * | impl | ) |
Constructs an MGPUDeformerData from an existing implementation object.
The constructed object does not take ownership of the implementation.
|
virtual |
Store an MGPUDeformerBuffer.
If an MGPUDeformerBuffer with the same name has already been stored then the new buffer replaces the old buffer.
[in] | buffer | The buffer to be stored. |
|
virtual |
Retrieve the MGPUDeformerBuffer with the given name.
The buffer data remains on the GPU, allowing MPxGPUDeformer nodes to access it as part of an evaluation chain.
If the MGPUDeformerData stores buffers for multiple plugs then the returned MGPUDeformerBuffer is not valid.
[in] | name | The name of the buffer to be retrieved. |
|
virtual |
Retrieve the MGPUDeformerBuffer with the given name and plug.
If no buffer matches the given name then the returned MGPUDeformerBuffer is not valid. The buffer data remains on the GPU, allowing MPxGPUDeformer nodes to access it as part of an evaluation chain.
[in] | name | The name of the buffer to be retrieved. |
[in] | plug | The plug of the buffer to be retrieved. |