Used for storing per-instance data for rendering. More...
#include <UserRenderInstanceBuffer.h>
Public Member Functions | |
virtual bool | getInteropResourceHandle (CUgraphicsResource &handle) |
virtual void | writeBuffer (const void *data, uint32_t firstInstance, uint32_t numInstances) |
Called when APEX wants to update the contents of the instance buffer. |
Used for storing per-instance data for rendering.
virtual bool nvidia::apex::UserRenderInstanceBuffer::getInteropResourceHandle | ( | CUgraphicsResource & | handle | ) | [inline, virtual] |
Get the low-level handle of the buffer resource
virtual void nvidia::apex::UserRenderInstanceBuffer::writeBuffer | ( | const void * | data, |
uint32_t | firstInstance, | ||
uint32_t | numInstances | ||
) | [inline, virtual] |
Called when APEX wants to update the contents of the instance buffer.
The source data type is assumed to be the same as what was defined in the descriptor. APEX should call this function and supply data for ALL semantics that were originally requested during creation every time its called.
[in] | data | Contains the source data for the instance buffer. |
[in] | firstInstance | first instance to start writing to. |
[in] | numInstances | number of instance to write. |