Class PipelineState
A Pipeline State object encapsulates the complete pipeline configuration, including Shaders, input layout, Render States, and output settings. It represents an atomic, immutable collection of states that can be efficiently bound and unbound as a single unit during rendering operations.
An instance of this class can represent either the state of the graphics pipeline, or the state of the compute pipeline (in the platforms that support compute).
public class PipelineState : GraphicsResourceBase, IDisposable, IComponent, IReferencable, ICollectorHolder
- Inheritance
-
objectPipelineState
- Implements
- Inherited Members
- Extension Methods
Properties
InputBindingCount
public int InputBindingCount { get; }
Property Value
Methods
New(GraphicsDevice, PipelineStateDescription)
Creates a new Pipeline State object from the provided description.
public static PipelineState New(GraphicsDevice graphicsDevice, PipelineStateDescription pipelineStateDescription)
Parameters
graphicsDeviceGraphicsDeviceThe Graphics Device.
pipelineStateDescriptionPipelineStateDescriptionA description of the desired graphics pipeline configuration.
Returns
- PipelineState
A new instance of PipelineState.
OnDestroyed(bool)
Called when the GraphicsDevice has been detected to be internally destroyed, or when the Destroy() methad has been called. Raises the Destroyed event.
protected override void OnDestroyed(bool immediately = false)
Parameters
immediatelyboolA value indicating whether the resource should be destroyed immediately (true), or if it can be deferred until it's safe to do so (false).
Remarks
This method releases the underlying native resources (Silk.NET.Direct3D11.ID3D11Resource and Silk.NET.Direct3D11.ID3D11DeviceChild).