24 #ifndef PXR_IMAGING_HD_ST_EXT_COMP_GPU_PRIMVAR_BUFFER_SOURCE_H
25 #define PXR_IMAGING_HD_ST_EXT_COMP_GPU_PRIMVAR_BUFFER_SOURCE_H
28 #include "pxr/imaging/hdSt/api.h"
29 #include "pxr/imaging/hd/bufferSource.h"
30 #include "pxr/imaging/hd/types.h"
34 #include "pxr/usd/sdf/path.h"
36 PXR_NAMESPACE_OPEN_SCOPE
55 virtual bool Resolve()
override;
67 virtual void GetBufferSpecs(HdBufferSpecVector *specs)
const override;
85 PXR_NAMESPACE_CLOSE_SCOPE
87 #endif // PXR_IMAGING_HD_ST_EXT_COMP_GPU_PRIMVAR_BUFFER_SOURCE_H
virtual HD_API TfToken const & GetName() const override
Return the name of this buffer source.
virtual HD_API HdTupleType GetTupleType() const override
Returns the data type and count (array size) for this buffer source.
HdTupleType represents zero, one, or more values of the same HdType.
virtual HDST_API bool Resolve() override
Prepare the access of GetData().
Token for efficient comparison, assignment, and hashing of known strings.
A abstract base class for pure cpu computation.
A path value used to locate objects in layers or scenegraphs.
A buffer source mapped to an output of an ExtComp CPU computation.
virtual HDST_API size_t ComputeHash() const override
Computes and returns a hash value for the underlying data.
virtual HDST_API void GetBufferSpecs(HdBufferSpecVector *specs) const override
Add the buffer spec for this buffer source into given bufferspec vector.
virtual bool _CheckValid() const override
Checks the validity of the source buffer.
TfToken class for efficient string referencing and hashing, plus conversions to and from stl string c...
virtual HDST_API size_t GetNumElements() const override
Returns the number of elements (e.g.