24 #ifndef PXR_IMAGING_HD_ST_EXT_COMP_PRIMVAR_BUFFER_SOURCE_H
25 #define PXR_IMAGING_HD_ST_EXT_COMP_PRIMVAR_BUFFER_SOURCE_H
41 std::shared_ptr<class HdStExtCompCpuComputation>;
59 const TfToken &sourceOutputName,
83 void const *
GetData()
const override;
100 template <
class HashState>
102 HdStExtCompPrimvarBufferSource
const &);
106 size_t _sourceOutputIdx;
108 void const *_rawDataPtr;
110 HdStExtCompPrimvarBufferSource() =
delete;
111 HdStExtCompPrimvarBufferSource(
112 const HdStExtCompPrimvarBufferSource &) =
delete;
113 HdStExtCompPrimvarBufferSource &operator = (
114 const HdStExtCompPrimvarBufferSource &) =
delete;
119 #endif // PXR_IMAGING_HD_ST_EXT_COMP_PRIMVAR_BUFFER_SOURCE_H
HDST_API bool _CheckValid() const override
Returns true if the binding to the source computation was successful.
friend void TfHashAppend(HashState &h, HdStExtCompPrimvarBufferSource const &)
HDST_API void const * GetData() const override
Returns a raw pointer to the primvar data.
HDST_API size_t GetNumElements() const override
Returns a count of the number of elements.
HDST_API bool Resolve() override
Extracts the primvar from the source computation.
HDST_API void GetBufferSpecs(HdBufferSpecVector *specs) const override
Adds this Primvar's buffer description to the buffer spec vector.
HDST_API HdTupleType GetTupleType() const override
Returns the tuple data format of the primvar data.
GLsizei GLsizei GLchar * source
HDST_API ~HdStExtCompPrimvarBufferSource() override
std::vector< struct HdBufferSpec > HdBufferSpecVector
GLfloat GLfloat GLfloat GLfloat h
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
HDST_API size_t ComputeHash() const override
Computes and returns a hash value for the underlying data.
#define PXR_NAMESPACE_CLOSE_SCOPE
HDST_API TfToken const & GetName() const override
Returns the name of the primvar.
std::shared_ptr< class HdStExtCompCpuComputation > HdStExtCompCpuComputationSharedPtr