All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HgiGraphicsPipelineDesc Struct Reference

Describes the properties needed to create a GPU pipeline. More...

Public Attributes

std::string debugName
 
HgiPrimitiveType primitiveType
 
HgiShaderProgramHandle shaderProgram
 
HgiDepthStencilState depthState
 
HgiMultiSampleState multiSampleState
 
HgiRasterizationState rasterizationState
 
HgiVertexBufferDescVector vertexBuffers
 
HgiAttachmentDescVector colorAttachmentDescs
 
HgiAttachmentDescVector colorResolveAttachmentDescs
 
HgiAttachmentDesc depthAttachmentDesc
 
HgiAttachmentDesc depthResolveAttachmentDesc
 
HgiGraphicsShaderConstantsDesc shaderConstantsDesc
 

Detailed Description

Describes the properties needed to create a GPU pipeline.

  • primitiveType: Describes the stream of vertices (primitive topology).
  • shaderProgram: Shader functions/stages used in this pipeline.
  • depthState: Describes depth state for a pipeline.
  • multiSampleState: Various settings to control multi-sampling.
  • rasterizationState: Various settings to control rasterization.
  • vertexBuffers: Description of the vertex buffers (per-vertex attributes). The actual VBOs are bound via GraphicsCmds.
  • colorAttachmentDescs: Describes each of the color attachments.
  • colorResolveAttachmentDescs: Describes each of the color resolve attachments (optional).
  • depthAttachmentDesc: Describes the depth attachment (optional) Use HgiFormatInvalid to indicate no depth attachment.
  • depthResolveAttachmentDesc: Describes the depth resolve attachment (optional). Use HgiFormatInvalid to indicate no depth resolve attachment.
  • shaderConstantsDesc: Describes the shader uniforms.

Definition at line 281 of file graphicsPipeline.h.


The documentation for this struct was generated from the following file: