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