24 #ifndef PXR_IMAGING_HGI_GL_BUFFER_H
25 #define PXR_IMAGING_HGI_GL_BUFFER_H
28 #include "pxr/imaging/hgiGL/api.h"
29 #include "pxr/imaging/hgi/buffer.h"
32 PXR_NAMESPACE_OPEN_SCOPE
53 uint32_t GetBufferId()
const {
return _bufferId;}
62 HgiGLBuffer() =
delete;
63 HgiGLBuffer & operator=(
const HgiGLBuffer&) =
delete;
64 HgiGLBuffer(
const HgiGLBuffer&) =
delete;
72 PXR_NAMESPACE_CLOSE_SCOPE
Represents an OpenGL GPU buffer resource.
HGIGL_API void * GetCPUStagingAddress() override
Returns the 'staging area' in which new buffer data is copied before it is flushed to GPU...
HGIGL_API size_t GetByteSizeOfResource() const override
Returns the byte size of the GPU buffer.
OpenGL implementation of the Hydra Graphics Interface.
Describes the properties needed to create a GPU buffer.
HGIGL_API uint64_t GetRawResource() const override
This function returns the handle to the Hgi backend's gpu resource, cast to a uint64_t.
Represents a graphics platform independent GPU buffer resource (base class).