Struct GraphicsPipelineDescription
- Namespace
- NeoVeldrid
- Assembly
- NeoVeldrid.dll
Describes a graphics Pipeline, for creation using a ResourceFactory.
public struct GraphicsPipelineDescription : IEquatable<GraphicsPipelineDescription>
- Implements
- Inherited Members
Constructors
GraphicsPipelineDescription(BlendStateDescription, DepthStencilStateDescription, RasterizerStateDescription, PrimitiveTopology, ShaderSetDescription, ResourceLayout, OutputDescription)
Constructs a new GraphicsPipelineDescription.
public GraphicsPipelineDescription(BlendStateDescription blendState, DepthStencilStateDescription depthStencilStateDescription, RasterizerStateDescription rasterizerState, PrimitiveTopology primitiveTopology, ShaderSetDescription shaderSet, ResourceLayout resourceLayout, OutputDescription outputs)
Parameters
blendStateBlendStateDescriptionA description of the blend state, which controls how color values are blended into each color target.
depthStencilStateDescriptionDepthStencilStateDescriptionA description of the depth stencil state, which controls depth tests, writing, and comparisons.
rasterizerStateRasterizerStateDescriptionA description of the rasterizer state, which controls culling, clipping, scissor, and polygon-fill behavior.
primitiveTopologyPrimitiveTopologyThe PrimitiveTopology to use, which controls how a series of input vertices is interpreted by the Pipeline.
shaderSetShaderSetDescriptionA description of the shader set to be used.
resourceLayoutResourceLayoutA ResourceLayout, which controls the layout of shader resoruces in the Pipeline.
outputsOutputDescriptionA description of the output attachments used by the Pipeline.
GraphicsPipelineDescription(BlendStateDescription, DepthStencilStateDescription, RasterizerStateDescription, PrimitiveTopology, ShaderSetDescription, ResourceLayout[], OutputDescription)
Constructs a new GraphicsPipelineDescription.
public GraphicsPipelineDescription(BlendStateDescription blendState, DepthStencilStateDescription depthStencilStateDescription, RasterizerStateDescription rasterizerState, PrimitiveTopology primitiveTopology, ShaderSetDescription shaderSet, ResourceLayout[] resourceLayouts, OutputDescription outputs)
Parameters
blendStateBlendStateDescriptionA description of the blend state, which controls how color values are blended into each color target.
depthStencilStateDescriptionDepthStencilStateDescriptionA description of the depth stencil state, which controls depth tests, writing, and comparisons.
rasterizerStateRasterizerStateDescriptionA description of the rasterizer state, which controls culling, clipping, scissor, and polygon-fill behavior.
primitiveTopologyPrimitiveTopologyThe PrimitiveTopology to use, which controls how a series of input vertices is interpreted by the Pipeline.
shaderSetShaderSetDescriptionA description of the shader set to be used.
resourceLayoutsResourceLayout[]An array of ResourceLayout, which controls the layout of shader resoruces in the Pipeline.
outputsOutputDescriptionA description of the output attachments used by the Pipeline.
GraphicsPipelineDescription(BlendStateDescription, DepthStencilStateDescription, RasterizerStateDescription, PrimitiveTopology, ShaderSetDescription, ResourceLayout[], OutputDescription, ResourceBindingModel)
Constructs a new GraphicsPipelineDescription.
public GraphicsPipelineDescription(BlendStateDescription blendState, DepthStencilStateDescription depthStencilStateDescription, RasterizerStateDescription rasterizerState, PrimitiveTopology primitiveTopology, ShaderSetDescription shaderSet, ResourceLayout[] resourceLayouts, OutputDescription outputs, ResourceBindingModel resourceBindingModel)
Parameters
blendStateBlendStateDescriptionA description of the blend state, which controls how color values are blended into each color target.
depthStencilStateDescriptionDepthStencilStateDescriptionA description of the depth stencil state, which controls depth tests, writing, and comparisons.
rasterizerStateRasterizerStateDescriptionA description of the rasterizer state, which controls culling, clipping, scissor, and polygon-fill behavior.
primitiveTopologyPrimitiveTopologyThe PrimitiveTopology to use, which controls how a series of input vertices is interpreted by the Pipeline.
shaderSetShaderSetDescriptionA description of the shader set to be used.
resourceLayoutsResourceLayout[]An array of ResourceLayout, which controls the layout of shader resoruces in the Pipeline.
outputsOutputDescriptionA description of the output attachments used by the Pipeline.
resourceBindingModelResourceBindingModelThe ResourceBindingModel to use for this pipeline. Overrides the value specified in GraphicsDeviceOptions.
Fields
BlendState
A description of the blend state, which controls how color values are blended into each color target.
public BlendStateDescription BlendState
Field Value
DepthStencilState
A description of the depth stencil state, which controls depth tests, writing, and comparisons.
public DepthStencilStateDescription DepthStencilState
Field Value
Outputs
A description of the output attachments used by the Pipeline.
public OutputDescription Outputs
Field Value
PrimitiveTopology
The PrimitiveTopology to use, which controls how a series of input vertices is interpreted by the Pipeline.
public PrimitiveTopology PrimitiveTopology
Field Value
RasterizerState
A description of the rasterizer state, which controls culling, clipping, scissor, and polygon-fill behavior.
public RasterizerStateDescription RasterizerState
Field Value
ResourceBindingModel
Specifies which model the rendering backend should use for binding resources.
If
null
, the pipeline will use the value specified in GraphicsDeviceOptions.
public ResourceBindingModel? ResourceBindingModel
Field Value
ResourceLayouts
An array of ResourceLayout, which controls the layout of shader resources in the Pipeline.
public ResourceLayout[] ResourceLayouts
Field Value
ShaderSet
A description of the shader set to be used.
public ShaderSetDescription ShaderSet
Field Value
Methods
Equals(GraphicsPipelineDescription)
Element-wise equality.
public bool Equals(GraphicsPipelineDescription other)
Parameters
otherGraphicsPipelineDescriptionThe instance to compare to.
Returns
- bool
True if all elements and all array elements are equal; false otherswise.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.