35 #ifndef PXR_IMAGING_HD_PRIMVAR_SCHEMA_H
36 #define PXR_IMAGING_HD_PRIMVAR_SCHEMA_H
54 #define HD_PRIMVAR_SCHEMA_TOKENS \
56 (indexedPrimvarValue) \
141 static HdContainerDataSourceHandle
143 const HdSampledDataSourceHandle &primvarValue,
144 const HdSampledDataSourceHandle &indexedPrimvarValue,
161 const HdSampledDataSourceHandle &primvarValue);
164 const HdSampledDataSourceHandle &indexedPrimvarValue);
177 HdContainerDataSourceHandle
Build();
180 HdSampledDataSourceHandle _primvarValue;
181 HdSampledDataSourceHandle _indexedPrimvarValue;
HD_API Builder & SetRole(const HdTokenDataSourceHandle &role)
GLsizei GLenum const void * indices
static HD_API HdTokenDataSourceHandle BuildInterpolationDataSource(const TfToken &interpolation)
TF_DECLARE_PUBLIC_TOKENS(HdPrimvarSchemaTokens, HD_API, HD_PRIMVAR_SCHEMA_TOKENS)
static HD_API HdContainerDataSourceHandle BuildRetained(const HdSampledDataSourceHandle &primvarValue, const HdSampledDataSourceHandle &indexedPrimvarValue, const HdIntArrayDataSourceHandle &indices, const HdTokenDataSourceHandle &interpolation, const HdTokenDataSourceHandle &role)
HdPrimvarSchema(HdContainerDataSourceHandle container)
HD_API Builder & SetPrimvarValue(const HdSampledDataSourceHandle &primvarValue)
HD_API HdSampledDataSourceHandle GetFlattenedPrimvarValue()
HD_API Builder & SetInterpolation(const HdTokenDataSourceHandle &interpolation)
HD_API HdSampledDataSourceHandle GetPrimvarValue()
HdIntArrayDataSource::Handle HdIntArrayDataSourceHandle
HD_API HdTokenDataSourceHandle GetInterpolation()
#define HD_PRIMVAR_SCHEMA_TOKENS
HD_API Builder & SetIndices(const HdIntArrayDataSourceHandle &indices)
static HD_API HdTokenDataSourceHandle BuildRoleDataSource(const TfToken &role)
HD_API HdIntArrayDataSourceHandle GetIndices()
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
HD_API HdTokenDataSourceHandle GetRole()
HdTokenDataSource::Handle HdTokenDataSourceHandle
HD_API HdSampledDataSourceHandle GetIndexedPrimvarValue()