Class DX11PipelineStateCache
The DX11 pipeline cache used to minimize graphics state changes.
Namespace: Evergine.DirectX11
Assembly: Evergine.DirectX11.dll
Syntax
public class DX11PipelineStateCache
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 blend state from cache.
Declaration
public ID3D11BlendState GetNativeBlendState(ref BlendStateDescription description)
Parameters
Type | Name | Description |
---|---|---|
BlendStateDescription | description | The blend state description. |
Returns
Type | Description |
---|---|
ID3D11BlendState | The native blend state. |
GetNativeDepthStencilState(ref DepthStencilStateDescription)
Gets a native depthStencilState from the 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 input layout from the cache.
Declaration
public ID3D11InputLayout GetNativeInputLayout(ref InputLayouts inputs, byte[] vertexShaderByteCode)
Parameters
Type | Name | Description |
---|---|---|
InputLayouts | inputs | The input layout description. |
byte[] | vertexShaderByteCode | The vertex shader bytecode. |
Returns
Type | Description |
---|---|
ID3D11InputLayout | Input layout. |
GetNativeRasterizerState(ref RasterizerStateDescription, bool)
Gets a native rasterizer state from the cache.
Declaration
public ID3D11RasterizerState GetNativeRasterizerState(ref RasterizerStateDescription description, bool isMultisampleEnabled)
Parameters
Type | Name | Description |
---|---|---|
RasterizerStateDescription | description | The rasterizer state description. |
bool | isMultisampleEnabled | Indicates whether multisampling is enabled. |
Returns
Type | Description |
---|---|
ID3D11RasterizerState | The native rasterizer state. |