24 #ifndef PXR_IMAGING_HGI_GL_GRAPHICS_CMDS_H
25 #define PXR_IMAGING_HGI_GL_GRAPHICS_CMDS_H
81 const void*
data)
override;
91 uint32_t instanceCount,
92 uint32_t baseInstance)
override;
97 uint32_t drawBufferByteOffset,
105 uint32_t indexBufferByteOffset,
107 uint32_t instanceCount,
108 uint32_t baseInstance)
override;
114 uint32_t drawBufferByteOffset,
117 std::vector<uint32_t>
const& drawParameterBufferUInt32,
118 uint32_t patchBaseVertexByteOffset)
override;
145 int _primitiveIndexSize;
148 int32_t _restoreReadFramebuffer;
149 int32_t _restoreDrawFramebuffer;
HGIGL_API void SetConstantValues(HgiGraphicsPipelineHandle pipeline, HgiShaderStage stages, uint32_t bindIndex, uint32_t byteSize, const void *data) override
GLuint GLsizei const GLchar * label
HGIGL_API void PushDebugGroup(const char *label) override
Push a debug marker.
HGIGL_API void Draw(uint32_t vertexCount, uint32_t baseVertex, uint32_t instanceCount, uint32_t baseInstance) override
HGIGL_API void SetScissor(GfVec4i const &sc) override
HGIGL_API void DrawIndexedIndirect(HgiBufferHandle const &indexBuffer, HgiBufferHandle const &drawParameterBuffer, uint32_t drawBufferByteOffset, uint32_t drawCount, uint32_t stride, std::vector< uint32_t > const &drawParameterBufferUInt32, uint32_t patchBaseVertexByteOffset) override
HGIGL_API void BindVertexBuffers(HgiVertexBufferBindingVector const &bindings) override
Binds the vertex buffer(s) that describe the vertex attributes.
HGIGL_API bool _Submit(Hgi *hgi, HgiSubmitWaitType wait) override
std::vector< HgiVertexBufferBinding > HgiVertexBufferBindingVector
GLint GLenum GLboolean GLsizei stride
HGIGL_API void BindPipeline(HgiGraphicsPipelineHandle pipeline) override
HGIGL_API ~HgiGLGraphicsCmds() override
HGIGL_API void PopDebugGroup() override
Pop the last debug marker.
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
HGIGL_API void DrawIndirect(HgiBufferHandle const &drawParameterBuffer, uint32_t drawBufferByteOffset, uint32_t drawCount, uint32_t stride) override
#define PXR_NAMESPACE_CLOSE_SCOPE
HGIGL_API void InsertFunctionOp(std::function< void(void)> const &fn)
HGIGL_API void BindResources(HgiResourceBindingsHandle resources) override
std::vector< HgiGLOpsFn > HgiGLOpsVector
HGIGL_API void SetViewport(GfVec4i const &vp) override
Set viewport [left, BOTTOM, width, height] - OpenGL coords.
HGIGL_API void InsertMemoryBarrier(HgiMemoryBarrier barrier) override
HGIGL_API void DrawIndexed(HgiBufferHandle const &indexBuffer, uint32_t indexCount, uint32_t indexBufferByteOffset, uint32_t baseVertex, uint32_t instanceCount, uint32_t baseInstance) override