24 #ifndef PXR_IMAGING_HD_ST_BUFFER_RESOURCE_H
25 #define PXR_IMAGING_HD_ST_BUFFER_RESOURCE_H
28 #include "pxr/imaging/hdSt/api.h"
29 #include "pxr/imaging/hd/bufferResource.h"
31 #include "pxr/imaging/hgi/buffer.h"
39 PXR_NAMESPACE_OPEN_SCOPE
41 using HdStBufferResourceSharedPtr =
42 std::shared_ptr<class HdStBufferResource>;
44 using HdStBufferResourceNamedPair =
45 std::pair<TfToken, HdStBufferResourceSharedPtr>;
46 using HdStBufferResourceNamedList =
47 std::vector<HdStBufferResourceNamedPair>;
63 ~HdStBufferResource();
82 PXR_NAMESPACE_CLOSE_SCOPE
84 #endif // PXR_IMAGING_HD_ST_BUFFER_RESOURCE_H
HdTupleType represents zero, one, or more values of the same HdType.
HgiBufferHandle & GetHandle()
Returns the HgiBufferHandle for this GPU resource.
uint64_t GetGPUAddress() const
Returns the gpu address (if available. otherwise returns 0).
A specific type of HdResource (GPU resource) representing a buffer object.
Token for efficient comparison, assignment, and hashing of known strings.
A specific type of HdBufferResource (GPU resource) representing an HgiBufferHandle.
HDST_API void SetAllocation(HgiBufferHandle const &handle, size_t size)
Sets the HgiBufferHandle for this resource and its size.
TfToken class for efficient string referencing and hashing, plus conversions to and from stl string c...