24 #ifndef PXR_IMAGING_HD_VT_BUFFER_SOURCE_H
25 #define PXR_IMAGING_HD_VT_BUFFER_SOURCE_H
59 int arraySize=1,
bool allowDoubles=
true);
71 bool allowDoubles=
true);
84 int arraySize=1,
bool allowDoubles=
true);
143 void _SetValue(
const VtValue &
v,
int arraySize,
bool allowDoubles);
165 #endif //PXR_IMAGING_HD_VT_BUFFER_SOURCE_H
HD_API HdVtBufferSource(TfToken const &name, VtValue const &value, int arraySize=1, bool allowDoubles=true)
void const * GetData() const override
Returns the raw pointer to the underlying data.
static HD_API HdType GetDefaultMatrixType()
HD_API std::ostream & operator<<(std::ostream &out, const HdVtBufferSource &self)
Diagnostic output.
HD_API const void * HdGetValueData(const VtValue &)
TfToken const & GetName() const override
Return the name of this buffer source.
GLuint const GLchar * name
std::vector< struct HdBufferSpec > HdBufferSpecVector
void GetBufferSpecs(HdBufferSpecVector *specs) const override
Add the buffer spec for this buffer source into given bufferspec vector.
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
HD_API bool _CheckValid() const override
HD_API void Truncate(size_t numElements)
#define PXR_NAMESPACE_CLOSE_SCOPE
bool Resolve() override
Prepare the access of GetData().
HD_API size_t GetNumElements() const override
HdTupleType GetTupleType() const override
Returns the data type and count of this buffer source.
HD_API ~HdVtBufferSource() override
Destructor deletes the internal storage.