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"
21PXR_NAMESPACE_OPEN_SCOPE
49 : usage(HgiBufferUsageUniform)
52 , initialData(
nullptr)
55 std::string debugName;
58 uint32_t vertexStride;
59 void const* initialData;
135using HgiBufferHandleVector = std::vector<HgiBufferHandle>;
138PXR_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.