7#ifndef PXR_IMAGING_HD_ST_BUFFER_RESOURCE_H
8#define PXR_IMAGING_HD_ST_BUFFER_RESOURCE_H
11#include "pxr/imaging/hdSt/api.h"
13#include "pxr/imaging/hd/types.h"
15#include "pxr/imaging/hgi/buffer.h"
23PXR_NAMESPACE_OPEN_SCOPE
26using HdStBufferResourceSharedPtr =
27 std::shared_ptr<class HdStBufferResource>;
29using HdStBufferResourceNamedPair =
30 std::pair<TfToken, HdStBufferResourceSharedPtr>;
31using HdStBufferResourceNamedList =
32 std::vector<HdStBufferResourceNamedPair>;
86PXR_NAMESPACE_CLOSE_SCOPE
A GPU resource contained within an underlying HgiBuffer.
size_t GetSize() const
Returns the size (in bytes) of the data.
int GetOffset() const
Returns the interleaved offset (in bytes) of the data.
HdTupleType GetTupleType() const
Data type and count.
HgiBufferHandle & GetHandle()
Returns the HgiBufferHandle for this GPU resource.
HDST_API void SetAllocation(HgiBufferHandle const &handle, size_t size)
Sets the HgiBufferHandle for this resource and its size.
int GetStride() const
Returns the stride (in bytes) between data elements.
TfToken const & GetRole() const
Returns the role of the data in this resource.
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...