Class GLGraphicsPipelineStateCache
The OpenGL cache implementation for graphics pipeline state.
Implements
Inherited Members
Namespace: Evergine.OpenGL
Assembly: Evergine.OpenGL.dll
Syntax
public class GLGraphicsPipelineStateCache : IDisposable
Constructors
GLGraphicsPipelineStateCache(GLGraphicsContext)
Initializes a new instance of the GLGraphics
Declaration
public GLGraphicsPipelineStateCache(GLGraphicsContext graphicsContext)
Parameters
Type | Name | Description |
---|---|---|
GLGraphics |
graphicsContext | Graphics Context. |
Fields
glGraphicsContext
OpenGL Graphics Context.
Declaration
protected GLGraphicsContext glGraphicsContext
Field Value
Type | Description |
---|---|
GLGraphics |
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 GLBlendStateDescription GetNativeBlendState(ref BlendStateDescription description)
Parameters
Type | Name | Description |
---|---|---|
Blend |
description | The blendState description. |
Returns
Type | Description |
---|---|
GLBlend |
The native blendState. |
GetNativeDepthStencilState(ref DepthStencilStateDescription)
Gets a native depthStencilState from cache.
Declaration
public GLDepthStencilStateDescription GetNativeDepthStencilState(ref DepthStencilStateDescription description)
Parameters
Type | Name | Description |
---|---|---|
Depth |
description | The depthStencil description. |
Returns
Type | Description |
---|---|
GLDepth |
the native depthStencilState. |
GetNativeProgram(GraphicsShaderStateDescription)
Gets a native GLProgram from cache.
Declaration
public GLProgram GetNativeProgram(GraphicsShaderStateDescription shaderDescription)
Parameters
Type | Name | Description |
---|---|---|
Graphics |
shaderDescription | The shader description. |
Returns
Type | Description |
---|---|
GLProgram | Return OpenGL program. |
GetNativeRasterizerState(ref RasterizerStateDescription)
Gets a native rasterizerState from cache.
Declaration
public GLRasterizerStateDescription GetNativeRasterizerState(ref RasterizerStateDescription description)
Parameters
Type | Name | Description |
---|---|---|
Rasterizer |
description | The rasterizerState description. |
Returns
Type | Description |
---|---|
GLRasterizer |
The native rasterizerState. |