24 #ifndef PXR_IMAGING_HGI_GL_COMPUTE_CMDS_H
25 #define PXR_IMAGING_HGI_GL_COMPUTE_CMDS_H
28 #include "pxr/imaging/hgi/computeCmds.h"
29 #include "pxr/imaging/hgi/computePipeline.h"
30 #include "pxr/imaging/hgiGL/api.h"
31 #include "pxr/imaging/hgiGL/hgi.h"
34 PXR_NAMESPACE_OPEN_SCOPE
63 const void* data)
override;
66 void Dispatch(
int dimX,
int dimY)
override;
78 bool _Submit(
Hgi* hgi, HgiSubmitWaitType wait)
override;
81 HgiGLComputeCmds() =
delete;
82 HgiGLComputeCmds & operator=(
const HgiGLComputeCmds&) =
delete;
83 HgiGLComputeCmds(
const HgiGLComputeCmds&) =
delete;
92 PXR_NAMESPACE_CLOSE_SCOPE
HGIGL_API void PopDebugGroup() override
Pop the last debug marker.
HGIGL_API void PushDebugGroup(const char *label) override
Push a debug marker.
HGIGL_API void BindPipeline(HgiComputePipelineHandle pipeline) override
Bind a pipeline state object.
A graphics API independent abstraction of compute commands.
OpenGL implementation of the Hydra Graphics Interface.
HGIGL_API void BindResources(HgiResourceBindingsHandle resources) override
Bind resources such as textures and uniform buffers.
Hydra Graphics Interface.
HGIGL_API void Dispatch(int dimX, int dimY) override
Execute a compute shader with provided thread group count in each dimension.
OpenGL implementation of HgiComputeCmds.
HGIGL_API void SetConstantValues(HgiComputePipelineHandle pipeline, uint32_t bindIndex, uint32_t byteSize, const void *data) override
Set Push / Function constants.
Handle that contains a hgi object and unique id.
HGIGL_API void MemoryBarrier(HgiMemoryBarrier barrier) override
Inserts a barrier so that data written to memory by commands before the barrier is available to comma...