Class GLComputePipelineStateCache
Implements an OpenGL cache for the ComputePipeline.
Namespace: Evergine.OpenGL
Assembly: Evergine.OpenGL.dll
Syntax
public class GLComputePipelineStateCache
Constructors
GLComputePipelineStateCache(GLGraphicsContext)
Initializes a new instance of the GLComputePipelineStateCache class.
Declaration
public GLComputePipelineStateCache(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 |
|
GetNativeProgram(ComputeShaderStateDescription)
Gets a native GLProgram from cache.
Declaration
public GLProgram GetNativeProgram(ComputeShaderStateDescription computeShaderStateDescription)
Parameters
Type | Name | Description |
---|---|---|
ComputeShaderStateDescription | computeShaderStateDescription | The shader description. |
Returns
Type | Description |
---|---|
GLProgram | Returns an OpenGL program. |