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