Utility class to track which embree user vertex buffers are currently in use. More...
Public Member Functions | |
HdEmbreeRTCBufferAllocator () | |
Constructor. By default, set everything to unallocated. More... | |
int | Allocate () |
Allocate a buffer by finding the first clear bit, using that as the buffer number, and setting the bit to mark it as used. More... | |
void | Free (int buffer) |
Free a buffer by clearing its bit. More... | |
unsigned int | NumBuffers () |
Query how many buffers are currently in user for this geometry. More... | |
Static Public Attributes | |
static constexpr int | PXR_MAX_USER_VERTEX_BUFFERS = 16 |
As of Embree3 the number of buffers was greatly increased however the maximum is only defined locally to the library as of v3.4.0 this was the number. More... | |
Utility class to track which embree user vertex buffers are currently in use.
Definition at line 41 of file meshSamplers.h.
|
inline |
Constructor. By default, set everything to unallocated.
Definition at line 45 of file meshSamplers.h.
int Allocate | ( | ) |
Allocate a buffer by finding the first clear bit, using that as the buffer number, and setting the bit to mark it as used.
void Free | ( | int | buffer | ) |
Free a buffer by clearing its bit.
buffer | The buffer to mark as unused. |
unsigned int NumBuffers | ( | ) |
Query how many buffers are currently in user for this geometry.
|
static |
As of Embree3 the number of buffers was greatly increased however the maximum is only defined locally to the library as of v3.4.0 this was the number.
Definition at line 63 of file meshSamplers.h.