Class GorgonStreamOutPipelineState
A pipeline state for stream out buffers.
Inherited Members
Namespace: Gorgon.Graphics.Core
Assembly: Gorgon.Graphics.Core.dll
Syntax
public class GorgonStreamOutPipelineState
Remarks
A pipeline state object is used to define the state of the pipeline prior to drawing anything. It can be used to assign shaders, and various other states that will affect how data is rasterized on the GPU.
This pipeline state is similar to a GorgonPipelineState, except that it only contains the necessary states that it can use when rendering a stream out buffer.
The pipeline state object is immutable, and as such cannot be changed directly. To create a new pipeline state object, a GorgonStreamOutPipelineStateBuilder must be used.
Pipeline states are assigned to a GorgonStreamOutCall.
Properties
| Edit this page View SourceBlendStates
Property to return the list of blending states for each render target.
Declaration
public IGorgonReadOnlyArray<GorgonBlendState> BlendStates { get; }
Property Value
Type | Description |
---|---|
IGorgonReadOnlyArray<GorgonBlendState> |
See Also
DepthStencilState
Property to return the depth/stencil state for the pipeline.
Declaration
public GorgonDepthStencilState DepthStencilState { get; }
Property Value
Type | Description |
---|---|
GorgonDepthStencilState |
See Also
IsAlphaToCoverageEnabled
Property to return whether alpha to coverage is enabled or not for blending.
Declaration
public bool IsAlphaToCoverageEnabled { get; }
Property Value
Type | Description |
---|---|
bool |
Remarks
This will use alpha to coverage as a multisampling technique when writing a pixel to a render target. Alpha to coverage is useful in situations where there are multiple overlapping polygons that use transparency to define edges.
See Also
IsIndependentBlendingEnabled
Property to return whether independent render target blending is enabled or not.
Declaration
public bool IsIndependentBlendingEnabled { get; }
Property Value
Type | Description |
---|---|
bool |
Remarks
This will specify whether to use different blending states for each render target. When this value is set to true, each render target blend state will be independent of other render target blend states. When this value is set to false, then only the blend state of the first render target is used.
See Also
PixelShader
Property to return the pixel shader.
Declaration
public GorgonPixelShader PixelShader { get; }
Property Value
Type | Description |
---|---|
GorgonPixelShader |
See Also
PrimitiveType
Property to return the type of primitive to use when drawing.
Declaration
public PrimitiveType PrimitiveType { get; }
Property Value
Type | Description |
---|---|
PrimitiveType |
See Also
RasterState
Property to return the rasterizer state for the pipeline.
Declaration
public GorgonRasterState RasterState { get; }
Property Value
Type | Description |
---|---|
GorgonRasterState |
See Also
VertexShader
Property to return the vertex shader.
Declaration
public GorgonVertexShader VertexShader { get; }
Property Value
Type | Description |
---|---|
GorgonVertexShader |