24 #ifndef PXR_IMAGING_HD_ST_BUFFER_RESOURCE_H
25 #define PXR_IMAGING_HD_ST_BUFFER_RESOURCE_H
44 std::shared_ptr<class HdStBufferResource>;
47 std::pair<TfToken, HdStBufferResourceSharedPtr>;
49 std::vector<HdStBufferResourceNamedPair>;
91 HdStBufferResource &operator=(
const HdStBufferResource &) =
delete;
105 #endif // PXR_IMAGING_HD_ST_BUFFER_RESOURCE_H
TfToken const & GetRole() const
Returns the role of the data in this resource.
std::pair< TfToken, HdStBufferResourceSharedPtr > HdStBufferResourceNamedPair
std::vector< std::pair< TfToken, HdStBufferResourceSharedPtr > > HdStBufferResourceNamedList
HgiBufferHandle & GetHandle()
Returns the HgiBufferHandle for this GPU resource.
HDST_API HdStBufferResource(TfToken const &role, HdTupleType tupleType, int offset, int stride)
int GetStride() const
Returns the stride (in bytes) between data elements.
GLint GLenum GLboolean GLsizei stride
size_t GetSize() const
Returns the size (in bytes) of the data.
std::shared_ptr< class HdStBufferResource > HdStBufferResourceSharedPtr
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
int GetOffset() const
Returns the interleaved offset (in bytes) of the data.
HDST_API ~HdStBufferResource()
HDST_API void SetAllocation(HgiBufferHandle const &handle, size_t size)
Sets the HgiBufferHandle for this resource and its size.
#define PXR_NAMESPACE_CLOSE_SCOPE
HdTupleType GetTupleType() const
Data type and count.