7#ifndef PXR_IMAGING_HD_ST_EXT_COMP_GPU_PRIMVAR_BUFFER_SOURCE_H
8#define PXR_IMAGING_HD_ST_EXT_COMP_GPU_PRIMVAR_BUFFER_SOURCE_H
11#include "pxr/imaging/hdSt/api.h"
12#include "pxr/imaging/hd/bufferSource.h"
13#include "pxr/imaging/hd/types.h"
17#include "pxr/usd/sdf/path.h"
19PXR_NAMESPACE_OPEN_SCOPE
68PXR_NAMESPACE_CLOSE_SCOPE
A abstract base class for pure cpu computation.
A buffer source mapped to an output of an ExtComp CPU computation.
virtual HDST_API size_t GetNumElements() const override
Returns the number of elements (e.g.
virtual HDST_API HdTupleType GetTupleType() const override
Returns the data type and count (array size) for this buffer source.
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.
virtual HDST_API TfToken const & GetName() const override
Return the name of this buffer source.
virtual HDST_API bool Resolve() override
Prepare the access of GetData().
A path value used to locate objects in layers or scenegraphs.
Token for efficient comparison, assignment, and hashing of known strings.
HdTupleType represents zero, one, or more values of the same HdType.
TfToken class for efficient string referencing and hashing, plus conversions to and from stl string c...