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"
38PXR_NAMESPACE_OPEN_SCOPE
66 : usage(HgiBufferUsageUniform)
69 , initialData(
nullptr)
72 std::string debugName;
75 uint32_t vertexStride;
76 void const* initialData;
85inline bool operator!=(
152using HgiBufferHandleVector = std::vector<HgiBufferHandle>;
155PXR_NAMESPACE_CLOSE_SCOPE
Represents a graphics platform independent GPU buffer resource (base class).
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.
virtual HGI_API void * GetCPUStagingAddress()=0
Returns the 'staging area' in which new buffer data is copied before it is flushed to GPU.
HGI_API HgiBufferDesc const & GetDescriptor() const
The descriptor describes the object.
virtual HGI_API size_t GetByteSizeOfResource() const =0
Returns the byte size of the GPU buffer.
Describes the properties needed to create a GPU buffer.