25 #ifndef OPENSUBDIV3_OSD_BUFFER_DESCRIPTOR_H 26 #define OPENSUBDIV3_OSD_BUFFER_DESCRIPTOR_H 28 #include "../version.h" 32 namespace OPENSUBDIV_VERSION {
108 using namespace OPENSUBDIV_VERSION;
112 #endif // OPENSUBDIV3_OSD_BUFFER_DESCRIPTOR_H bool operator==(BufferDescriptor const &other) const
True if the descriptors are identical.
int length
number or length of the data
void Reset()
Resets the descriptor to default.
int stride
stride to the next element
BufferDescriptor()
Default Constructor.
BufferDescriptor is a struct which describes buffer elements in interleaved data buffers. Almost all Osd Evaluator APIs take BufferDescriptors along with device-specific buffer objects.
bool operator!=(BufferDescriptor const &other) const
True if the descriptors are not identical.
int offset
offset to desired element data
BufferDescriptor(int o, int l, int s)
Constructor.
int GetLocalOffset() const
Returns the relative offset within a stride.
bool IsValid() const
True if the descriptor values are internally consistent.