24 #ifndef PXR_IMAGING_HGI_BUFFER_H
25 #define PXR_IMAGING_HGI_BUFFER_H
32 #include "pxr/imaging/hgi/api.h"
33 #include "pxr/imaging/hgi/enums.h"
34 #include "pxr/imaging/hgi/handle.h"
35 #include "pxr/imaging/hgi/types.h"
38 PXR_NAMESPACE_OPEN_SCOPE
66 : usage(HgiBufferUsageUniform)
69 , initialData(
nullptr)
72 std::string debugName;
75 uint32_t vertexStride;
76 void const* initialData;
146 HgiBuffer() =
delete;
147 HgiBuffer & operator=(
const HgiBuffer&) =
delete;
148 HgiBuffer(
const HgiBuffer&) =
delete;
152 using HgiBufferHandleVector = std::vector<HgiBufferHandle>;
155 PXR_NAMESPACE_CLOSE_SCOPE
AR_API bool operator!=(const ArAssetInfo &lhs, const ArAssetInfo &rhs)
virtual HGI_API uint64_t GetRawResource() const =0
This function returns the handle to the Hgi backend's gpu resource, cast to a uint64_t.
AR_API bool operator==(const ArAssetInfo &lhs, const ArAssetInfo &rhs)
virtual HGI_API void * GetCPUStagingAddress()=0
Returns the 'staging area' in which new buffer data is copied before it is flushed to GPU...
Describes the properties needed to create a GPU buffer.
virtual HGI_API size_t GetByteSizeOfResource() const =0
Returns the byte size of the GPU buffer.
Represents a graphics platform independent GPU buffer resource (base class).
HGI_API HgiBufferDesc const & GetDescriptor() const
The descriptor describes the object.