nvidia::apex::UserRenderVertexBuffer Class Reference
Used for storing per-vertex data for rendering. More...
#include <UserRenderVertexBuffer.h>
Public Member Functions | |
virtual bool | getInteropResourceHandle (CUgraphicsResource &handle) |
virtual void | writeBuffer (const nvidia::RenderVertexBufferData &data, uint32_t firstVertex, uint32_t numVertices)=0 |
Called when APEX wants to update the contents of the vertex buffer. |
Detailed Description
Used for storing per-vertex data for rendering.
Member Function Documentation
virtual bool nvidia::apex::UserRenderVertexBuffer::getInteropResourceHandle | ( | CUgraphicsResource & | handle | ) | [inline, virtual] |
Get the low-level handle of the buffer resource (D3D resource pointer or GL buffer object ID)
- Returns:
- true id succeeded, false otherwise
virtual void nvidia::apex::UserRenderVertexBuffer::writeBuffer | ( | const nvidia::RenderVertexBufferData & | data, |
uint32_t | firstVertex, | ||
uint32_t | numVertices | ||
) | [pure virtual] |
Called when APEX wants to update the contents of the vertex 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.
- Parameters:
-
[in] data Contains the source data for the vertex buffer. [in] firstVertex first vertex to start writing to. [in] numVertices number of vertices to write.
The documentation for this class was generated from the following file:
Generated on Fri Dec 15 2017 13:58:41
Copyright © 2012-2017 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved.