Used for storing per-vertex data for rendering. More...
#include <UserRenderSurfaceBuffer.h>
Public Member Functions | |
virtual void | writeBuffer (const void *srcData, uint32_t srcPitch, uint32_t srcHeight, uint32_t dstX, uint32_t dstY, uint32_t dstZ, uint32_t width, uint32_t height, uint32_t depth)=0 |
Called when APEX wants to update the contents of the surface buffer. | |
virtual bool | getInteropResourceHandle (CUgraphicsResource &handle) |
Used for storing per-vertex data for rendering.
virtual bool nvidia::apex::UserRenderSurfaceBuffer::getInteropResourceHandle | ( | CUgraphicsResource & | handle | ) | [inline, virtual] |
Get the low-level handle of the buffer resource
virtual void nvidia::apex::UserRenderSurfaceBuffer::writeBuffer | ( | const void * | srcData, |
uint32_t | srcPitch, | ||
uint32_t | srcHeight, | ||
uint32_t | dstX, | ||
uint32_t | dstY, | ||
uint32_t | dstZ, | ||
uint32_t | width, | ||
uint32_t | height, | ||
uint32_t | depth | ||
) | [pure virtual] |
Called when APEX wants to update the contents of the surface buffer.
The source data type is assumed to be the same as what was defined in the descriptor.
[in] | srcData | contains the source data for the surface buffer. |
[in] | srcPitch | source data pitch (in bytes). |
[in] | srcHeight | source data height. |
[in] | dstX | first element to start writing in X-dimension. |
[in] | dstY | first element to start writing in Y-dimension. |
[in] | dstZ | first element to start writing in Z-dimension. |
[in] | width | number of elements in X-dimension. |
[in] | height | number of elements in Y-dimension. |
[in] | depth | number of elements in Z-dimension. |