24 #ifndef PXR_IMAGING_HGI_GRAPHICS_CMDS_H
25 #define PXR_IMAGING_HGI_GRAPHICS_CMDS_H
99 const void*
data) = 0;
116 uint32_t vertexCount,
118 uint32_t instanceCount,
119 uint32_t baseInstance) = 0;
138 uint32_t drawBufferByteOffset,
157 uint32_t indexBufferByteOffset,
159 uint32_t instanceCount,
160 uint32_t baseInstance) = 0;
195 uint32_t drawBufferByteOffset,
198 std::vector<uint32_t>
const& drawParameterBufferUInt32,
199 uint32_t patchBaseVertexByteOffset) = 0;
211 HgiGraphicsCmds & operator=(
const HgiGraphicsCmds&) =
delete;
virtual HGI_API void DrawIndirect(HgiBufferHandle const &drawParameterBuffer, uint32_t drawBufferByteOffset, uint32_t drawCount, uint32_t stride)=0
GLuint GLsizei const GLchar * label
virtual HGI_API void DrawIndexed(HgiBufferHandle const &indexBuffer, uint32_t indexCount, uint32_t indexBufferByteOffset, uint32_t baseVertex, uint32_t instanceCount, uint32_t baseInstance)=0
virtual HGI_API void SetScissor(GfVec4i const &sc)=0
virtual HGI_API void BindResources(HgiResourceBindingsHandle resources)=0
virtual HGI_API void Draw(uint32_t vertexCount, uint32_t baseVertex, uint32_t instanceCount, uint32_t baseInstance)=0
virtual HGI_API void PopDebugGroup()=0
Pop the last debug marker.
std::vector< HgiVertexBufferBinding > HgiVertexBufferBindingVector
virtual HGI_API void PushDebugGroup(const char *label)=0
Push a debug marker.
GLint GLenum GLboolean GLsizei stride
virtual HGI_API void InsertMemoryBarrier(HgiMemoryBarrier barrier)=0
std::unique_ptr< class HgiGraphicsCmds > HgiGraphicsCmdsUniquePtr
HGI_API HgiGraphicsCmds()
virtual HGI_API void BindVertexBuffers(HgiVertexBufferBindingVector const &bindings)=0
Binds the vertex buffer(s) that describe the vertex attributes.
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
#define PXR_NAMESPACE_CLOSE_SCOPE
virtual HGI_API void SetConstantValues(HgiGraphicsPipelineHandle pipeline, HgiShaderStage stages, uint32_t bindIndex, uint32_t byteSize, const void *data)=0
virtual HGI_API void BindPipeline(HgiGraphicsPipelineHandle pipeline)=0
HGI_API ~HgiGraphicsCmds() override
virtual HGI_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)=0
virtual HGI_API void SetViewport(GfVec4i const &vp)=0
Set viewport [left, BOTTOM, width, height] - OpenGL coords.