OpenGL implementation of HgiComputeCmds. More...
Public Member Functions | |
HGIGL_API void | PushDebugGroup (const char *label) override |
Push a debug marker. More... | |
HGIGL_API void | PopDebugGroup () override |
Pop the last debug marker. More... | |
HGIGL_API void | BindPipeline (HgiComputePipelineHandle pipeline) override |
Bind a pipeline state object. More... | |
HGIGL_API void | BindResources (HgiResourceBindingsHandle resources) override |
Bind resources such as textures and uniform buffers. More... | |
HGIGL_API void | SetConstantValues (HgiComputePipelineHandle pipeline, uint32_t bindIndex, uint32_t byteSize, const void *data) override |
Set Push / Function constants. More... | |
HGIGL_API void | Dispatch (int dimX, int dimY) override |
Execute a compute shader with provided thread group count in each dimension. More... | |
HGIGL_API void | MemoryBarrier (HgiMemoryBarrier barrier) override |
Inserts a barrier so that data written to memory by commands before the barrier is available to commands after the barrier. More... | |
Public Member Functions inherited from HgiCmds | |
HGI_API bool | IsSubmitted () const |
Returns true if the HgiCmds object has been submitted to GPU. More... | |
Protected Member Functions | |
HGIGL_API | HgiGLComputeCmds (HgiGLDevice *device) |
HGIGL_API bool | _Submit (Hgi *hgi, HgiSubmitWaitType wait) override |
Protected Member Functions inherited from HgiCmds | |
HGI_API void | _SetSubmitted () |
Friends | |
class | HgiGL |
OpenGL implementation of HgiComputeCmds.
Definition at line 40 of file computeCmds.h.
|
overridevirtual |
Bind a pipeline state object.
Usually you call this right after calling CreateGraphicsCmds to set the graphics pipeline state. The resource bindings used when creating the pipeline must be compatible with the resources bound via BindResources().
Implements HgiComputeCmds.
|
overridevirtual |
Bind resources such as textures and uniform buffers.
Usually you call this right after BindPipeline() and the resources bound must be compatible with the bound pipeline.
Implements HgiComputeCmds.
|
overridevirtual |
Execute a compute shader with provided thread group count in each dimension.
Implements HgiComputeCmds.
|
overridevirtual |
Inserts a barrier so that data written to memory by commands before the barrier is available to commands after the barrier.
Implements HgiComputeCmds.
|
overridevirtual |
Pop the last debug marker.
Implements HgiComputeCmds.
|
overridevirtual |
Push a debug marker.
Implements HgiComputeCmds.
|
overridevirtual |
Set Push / Function constants.
pipeline
is the compute pipeline that you are binding before the draw call. It contains the program used for the uniform buffer constant values for. bindIndex
is the binding point index in the pipeline's shader to bind the data to. byteSize
is the size of the data you are updating. data
is the data you are copying into the push constants block.
Implements HgiComputeCmds.