|
Utility class to track which embree user vertex buffers are currently in use. More...
#include <meshSamplers.h>
Public Member Functions | |
HdEmbreeRTCBufferAllocator () | |
Constructor. By default, set everything to unallocated. | |
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. | |
unsigned int | NumBuffers () |
Query how many buffers are currently in user for this geometry. | |
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. | |
Utility class to track which embree user vertex buffers are currently in use.
Definition at line 43 of file meshSamplers.h.
|
inline |
Constructor. By default, set everything to unallocated.
Definition at line 47 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.
|
staticconstexpr |
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 65 of file meshSamplers.h.