7 #ifndef PXR_IMAGING_HGI_BUFFER_H 8 #define PXR_IMAGING_HGI_BUFFER_H 15 #include "pxr/imaging/hgi/api.h" 16 #include "pxr/imaging/hgi/enums.h" 17 #include "pxr/imaging/hgi/handle.h" 18 #include "pxr/imaging/hgi/types.h" 21 PXR_NAMESPACE_OPEN_SCOPE
49 : usage(HgiBufferUsageUniform)
52 , initialData(
nullptr)
55 std::string debugName;
58 uint32_t vertexStride;
59 void const* initialData;
135 using HgiBufferHandleVector = std::vector<HgiBufferHandle>;
138 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.