Class ShaderCompiler
Manages the compilation of shaders.
Inherited Members
Namespace: Evergine.Framework.Graphics.Effects.Compiler
Assembly: Evergine.Framework.dll
Syntax
public class ShaderCompiler
Constructors
ShaderCompiler(GraphicsContext)
Initializes a new instance of the Shader
Declaration
public ShaderCompiler(GraphicsContext graphicsContext)
Parameters
Type | Name | Description |
---|---|---|
Graphics |
graphicsContext | Graphics Backend. |
Methods
CompileCombinationStage(GraphicsBackend, PreprocessShader, ShaderStages, string, CompilerParameters)
Compile a combination (pass + activeDirectives) for a single stage (vertex, pixel, geometry ...).
Declaration
public CompilationResult CompileCombinationStage(GraphicsBackend graphicsBackend, PreprocessShader cleanedSource, ShaderStages stage, string entryPoint, CompilerParameters parameters)
Parameters
Type | Name | Description |
---|---|---|
Graphics |
graphicsBackend | Graphics Backend. |
Preprocess |
cleanedSource | Shader preprocessed source. |
Shader |
stage | Shader stage. |
string | entryPoint | EntryPoint. |
Compiler |
parameters | Compiler parameters. |
Returns
Type | Description |
---|---|
Compilation |
Compilation result. |
CompileShader(PreprocessShader, EntryPoints, CompilerParameters)
CompileShader and return.
Declaration
public CompilationResult CompileShader(PreprocessShader cleanedSource, EntryPoints entryPoints, CompilerParameters parameters)
Parameters
Type | Name | Description |
---|---|---|
Preprocess |
cleanedSource | Clean source. |
Entry |
entryPoints | Entry points. |
Compiler |
parameters | Parameters. |
Returns
Type | Description |
---|---|
Compilation |
Compile result object. |
GetShaderStateDescription()
Gets the shader state description.
Declaration
public ShaderStateDescription GetShaderStateDescription()
Returns
Type | Description |
---|---|
Shader |
The shader state description. |