Describes the data and layout of an instance buffer. More...
#include <UserRenderInstanceBufferDesc.h>
Public Member Functions | |
| void | setDefaults () |
| Default values. | |
| bool | isValid (void) const |
| Check if parameter's values are correct. | |
| bool | isTheSameAs (const UserRenderInstanceBufferDesc &other) const |
| Check if this object is the same as other. | |
Public Attributes | |
| uint32_t | maxInstances |
| The maximum amount of instances this buffer will ever hold. | |
| RenderBufferHint::Enum | hint |
| Hint on how often this buffer is updated. | |
| uint32_t | semanticOffsets [RenderInstanceLayoutElement::NUM_SEMANTICS] |
| Array of the corresponding offsets (in bytes) for each semantic. | |
| uint32_t | stride |
| The stride between instances of this buffer. Required when CUDA interop is used! | |
| bool | registerInCUDA |
| Declare if the resource must be registered in CUDA upon creation. | |
| PxCudaContextManager * | interopContext |
Describes the data and layout of an instance buffer.
| PxCudaContextManager* nvidia::apex::UserRenderInstanceBufferDesc::interopContext |
This context must be used to register and unregister the resource every time the device is lost and recreated.