18 #ifndef PXR_IMAGING_HD_PRIMVAR_SCHEMA_H
19 #define PXR_IMAGING_HD_PRIMVAR_SCHEMA_H
35 #define HD_PRIMVAR_SCHEMA_TOKENS \
37 (indexedPrimvarValue) \
141 static HdContainerDataSourceHandle
143 const HdSampledDataSourceHandle &primvarValue,
144 const HdSampledDataSourceHandle &indexedPrimvarValue,
162 const HdSampledDataSourceHandle &primvarValue);
165 const HdSampledDataSourceHandle &indexedPrimvarValue);
181 HdContainerDataSourceHandle
Build();
184 HdSampledDataSourceHandle _primvarValue;
185 HdSampledDataSourceHandle _indexedPrimvarValue;
HD_API bool IsIndexed() const
HD_API Builder & SetRole(const HdTokenDataSourceHandle &role)
GLsizei GLenum const void * indices
HD_API HdSampledDataSourceHandle GetIndexedPrimvarValue() const
static HD_API HdTokenDataSourceHandle BuildInterpolationDataSource(const TfToken &interpolation)
TF_DECLARE_PUBLIC_TOKENS(HdPrimvarSchemaTokens, HD_API, HD_PRIMVAR_SCHEMA_TOKENS)
HdPrimvarSchema(HdContainerDataSourceHandle container)
HD_API Builder & SetPrimvarValue(const HdSampledDataSourceHandle &primvarValue)
HD_API Builder & SetElementSize(const HdIntDataSourceHandle &elementSize)
static HD_API HdContainerDataSourceHandle BuildRetained(const HdSampledDataSourceHandle &primvarValue, const HdSampledDataSourceHandle &indexedPrimvarValue, const HdIntArrayDataSourceHandle &indices, const HdTokenDataSourceHandle &interpolation, const HdTokenDataSourceHandle &role, const HdIntDataSourceHandle &elementSize)
HD_API Builder & SetInterpolation(const HdTokenDataSourceHandle &interpolation)
HD_API HdIntDataSourceHandle GetElementSize() const
HdIntArrayDataSource::Handle HdIntArrayDataSourceHandle
HD_API HdSampledDataSourceHandle GetPrimvarValue() const
#define HD_PRIMVAR_SCHEMA_TOKENS
HD_API Builder & SetIndices(const HdIntArrayDataSourceHandle &indices)
static HD_API HdTokenDataSourceHandle BuildRoleDataSource(const TfToken &role)
HD_API HdTokenDataSourceHandle GetRole() const
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
HD_API HdContainerDataSourceHandle Build()
Returns a container data source containing the members set thus far.
HD_API Builder & SetIndexedPrimvarValue(const HdSampledDataSourceHandle &indexedPrimvarValue)
#define PXR_NAMESPACE_CLOSE_SCOPE
HdIntDataSource::Handle HdIntDataSourceHandle
HD_API HdSampledDataSourceHandle GetFlattenedPrimvarValue() const
HD_API HdTokenDataSourceHandle GetInterpolation() const
HdTokenDataSource::Handle HdTokenDataSourceHandle
HD_API HdIntArrayDataSourceHandle GetIndices() const