24 #ifndef PXR_IMAGING_HD_RESOURCE_H
25 #define PXR_IMAGING_HD_RESOURCE_H
28 #include "pxr/imaging/hd/api.h"
29 #include "pxr/imaging/hd/version.h"
35 PXR_NAMESPACE_OPEN_SCOPE
38 using HdResourceSharedPtr = std::shared_ptr<class HdResource>;
50 virtual ~HdResource();
67 HdResource(
const HdResource &) =
delete;
68 HdResource &operator=(
const HdResource &) =
delete;
76 PXR_NAMESPACE_CLOSE_SCOPE
78 #endif //PXR_IMAGING_HD_RESOURCE_H
HD_API void SetSize(size_t size)
Stores the size of the resource allocated in the GPU.
Token for efficient comparison, assignment, and hashing of known strings.
HD_API size_t GetSize() const
Returns the size of the resource allocated in the GPU.
TfToken const & GetRole() const
Returns the role of the GPU data in this resource.
Base class for all GPU resource objects.
TfToken class for efficient string referencing and hashing, plus conversions to and from stl string c...