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"
32PXR_NAMESPACE_OPEN_SCOPE
53 uint32_t GetBufferId()
const {
return _bufferId;}
72 uint64_t _bindlessGPUAddress;
76PXR_NAMESPACE_CLOSE_SCOPE
Represents a graphics platform independent GPU buffer resource (base class).
Represents an OpenGL GPU buffer resource.
HGIGL_API size_t GetByteSizeOfResource() const override
Returns the byte size of the 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.
HGIGL_API void * GetCPUStagingAddress() override
Returns the 'staging area' in which new buffer data is copied before it is flushed to GPU.
HGIGL_API uint64_t GetBindlessGPUAddress()
Returns the bindless gpu address (caller must verify extension support)
OpenGL implementation of the Hydra Graphics Interface.
Describes the properties needed to create a GPU buffer.