describes the semantics and layout of a sprite buffer More...
#include <NxUserRenderSpriteBufferDesc.h>
Public Member Functions | |
| void | setDefaults () |
| Default values. | |
| bool | isValid (void) const |
| Checks if data is correct. | |
Public Attributes | |
| physx::PxU32 | maxSprites |
| The maximum number of sprites that APEX will store in this buffer. | |
| NxRenderBufferHint::Enum | hint |
| A hint about the update frequency of this buffer. | |
| physx::PxU32 | semanticOffsets [NxRenderSpriteLayoutElement::NUM_SEMANTICS] |
| Array of the corresponding offsets (in bytes) for each semantic. Required when CUDA interop is used! | |
| physx::PxU32 | stride |
| The stride between sprites of this buffer. Required when CUDA interop is used! | |
| bool | registerInCUDA |
| Declare if the resource must be registered in CUDA upon creation. | |
| physx::PxCudaContextManager * | interopContext |
| physx::PxU32 | textureCount |
| the number of textures | |
| NxUserRenderSpriteTextureDesc | textureDescs [MAX_SPRITE_TEXTURES] |
| an array of texture descriptors | |
Static Public Attributes | |
| static const physx::PxU32 | MAX_SPRITE_TEXTURES = 4 |
| Max number of sprite textures. | |
describes the semantics and layout of a sprite buffer
| physx::PxCudaContextManager* physx::apex::NxUserRenderSpriteBufferDesc::interopContext |
This context must be used to register and unregister the resource every time the device is lost and recreated.