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"
30#include "pxr/imaging/hd/types.h"
32#include "pxr/imaging/hgi/buffer.h"
40PXR_NAMESPACE_OPEN_SCOPE
43using HdStBufferResourceSharedPtr =
44 std::shared_ptr<class HdStBufferResource>;
46using HdStBufferResourceNamedPair =
47 std::pair<TfToken, HdStBufferResourceSharedPtr>;
48using HdStBufferResourceNamedList =
49 std::vector<HdStBufferResourceNamedPair>;
103PXR_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...