Class DX11PipelineStateCache
The DX11 pipelinecache used to minimize graphics state changes.
Implements
Inherited Members
Namespace: Evergine.DirectX11
Assembly: Evergine.DirectX11.dll
Syntax
public class DX11PipelineStateCache : IDisposable
Constructors
DX11PipelineStateCache(DX11GraphicsContext)
Initializes a new instance of the DX11Pipeline
Declaration
public DX11PipelineStateCache(DX11GraphicsContext graphicsContext)
Parameters
Type | Name | Description |
---|---|---|
DX11Graphics |
graphicsContext | Graphics Context. |
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
Dispose(bool)
Releases unmanaged and - optionally - managed resources.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing |
|
GetNativeBlendState(ref BlendStateDescription)
Gets a native blendState from cache.
Declaration
public ID3D11BlendState GetNativeBlendState(ref BlendStateDescription description)
Parameters
Type | Name | Description |
---|---|---|
Blend |
description | The blendState description. |
Returns
Type | Description |
---|---|
ID3D11Blend |
The native blendState. |
GetNativeDepthStencilState(ref DepthStencilStateDescription)
Gets a native depthStencilState from cache.
Declaration
public ID3D11DepthStencilState GetNativeDepthStencilState(ref DepthStencilStateDescription description)
Parameters
Type | Name | Description |
---|---|---|
Depth |
description | The depthStencil description. |
Returns
Type | Description |
---|---|
ID3D11Depth |
the native depthStencilState. |
GetNativeInputLayout(ref InputLayouts, byte[])
Gets a native inputLayout from cache.
Declaration
public ID3D11InputLayout GetNativeInputLayout(ref InputLayouts inputs, byte[] vertexShaderByteCode)
Parameters
Type | Name | Description |
---|---|---|
Input |
inputs | The inputLayout description. |
byte[] | vertexShaderByteCode | The vertexShader byteCode. |
Returns
Type | Description |
---|---|
ID3D11Input |
Input layout. |
GetNativeRasterizerState(ref RasterizerStateDescription, bool)
Gets a native rasterizerState from cache.
Declaration
public ID3D11RasterizerState GetNativeRasterizerState(ref RasterizerStateDescription description, bool isMultisampleEnabled)
Parameters
Type | Name | Description |
---|---|---|
Rasterizer |
description | The rasterizerState description. |
bool | isMultisampleEnabled | Whether multisample is enabled or not. |
Returns
Type | Description |
---|---|
ID3D11Rasterizer |
The native rasterizerState. |