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 DX11PipelineStateCache class.
Declaration
public DX11PipelineStateCache(DX11GraphicsContext graphicsContext)
Parameters
Type | Name | Description |
---|---|---|
DX11GraphicsContext | 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 |
---|---|---|
BlendStateDescription | description | The blendState description. |
Returns
Type | Description |
---|---|
ID3D11BlendState | The native blendState. |
GetNativeDepthStencilState(ref DepthStencilStateDescription)
Gets a native depthStencilState from cache.
Declaration
public ID3D11DepthStencilState GetNativeDepthStencilState(ref DepthStencilStateDescription description)
Parameters
Type | Name | Description |
---|---|---|
DepthStencilStateDescription | description | The depthStencil description. |
Returns
Type | Description |
---|---|
ID3D11DepthStencilState | 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 |
---|---|---|
InputLayouts | inputs | The inputLayout description. |
byte[] | vertexShaderByteCode | The vertexShader byteCode. |
Returns
Type | Description |
---|---|
ID3D11InputLayout | 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 |
---|---|---|
RasterizerStateDescription | description | The rasterizerState description. |
bool | isMultisampleEnabled | Whether multisample is enabled or not. |
Returns
Type | Description |
---|---|
ID3D11RasterizerState | The native rasterizerState. |