Class GLGraphicsPipelineStateCache
The OpenGL cache implementation for the graphics pipeline state.
Namespace: Evergine.OpenGL
Assembly: Evergine.OpenGL.dll
Syntax
public class GLGraphicsPipelineStateCache
Constructors
GLGraphicsPipelineStateCache(GLGraphicsContext)
Initializes a new instance of the GLGraphicsPipelineStateCache class.
Declaration
public GLGraphicsPipelineStateCache(GLGraphicsContext graphicsContext)
Parameters
| Type | Name | Description |
|---|---|---|
| GLGraphicsContext | graphicsContext | Graphics context. |
Fields
glGraphicsContext
OpenGL graphics context.
Declaration
protected GLGraphicsContext glGraphicsContext
Field Value
| Type | Description |
|---|---|
| GLGraphicsContext |
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 the cache.
Declaration
public GLBlendStateDescription GetNativeBlendState(ref BlendStateDescription description)
Parameters
| Type | Name | Description |
|---|---|---|
| BlendStateDescription | description | The blend state description. |
Returns
| Type | Description |
|---|---|
| GLBlendStateDescription | The native blend state. |
GetNativeDepthStencilState(ref DepthStencilStateDescription)
Gets a native depthStencilState from the cache.
Declaration
public GLDepthStencilStateDescription GetNativeDepthStencilState(ref DepthStencilStateDescription description)
Parameters
| Type | Name | Description |
|---|---|---|
| DepthStencilStateDescription | description | The depthStencil description. |
Returns
| Type | Description |
|---|---|
| GLDepthStencilStateDescription | The native depthStencilState. |
GetNativeProgram(GraphicsShaderStateDescription)
Gets a native GLProgram from the cache.
Declaration
public GLProgram GetNativeProgram(GraphicsShaderStateDescription shaderDescription)
Parameters
| Type | Name | Description |
|---|---|---|
| GraphicsShaderStateDescription | shaderDescription | The shader description. |
Returns
| Type | Description |
|---|---|
| GLProgram | Returns an OpenGL program. |
GetNativeRasterizerState(ref RasterizerStateDescription)
Gets a native rasterizer state from the cache.
Declaration
public GLRasterizerStateDescription GetNativeRasterizerState(ref RasterizerStateDescription description)
Parameters
| Type | Name | Description |
|---|---|---|
| RasterizerStateDescription | description | The rasterizer state description. |
Returns
| Type | Description |
|---|---|
| GLRasterizerStateDescription | The native rasterizer state. |