Class ShaderCompiler
Manages the compilation of shaders.
Namespace: Evergine.Framework.Graphics.Effects.Compiler
Assembly: Evergine.Framework.dll
Syntax
public class ShaderCompiler
Constructors
ShaderCompiler(GraphicsContext)
Initializes a new instance of the ShaderCompiler class.
Declaration
public ShaderCompiler(GraphicsContext graphicsContext)
Parameters
Type | Name | Description |
---|---|---|
GraphicsContext | graphicsContext | Graphics backend. |
Methods
CompileCombinationStage(GraphicsBackend, PreprocessShader, ShaderStages, string, CompilerParameters)
Compiles 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 |
---|---|---|
GraphicsBackend | graphicsBackend | Graphics backend. |
PreprocessShader | cleanedSource | Shader preprocessed source. |
ShaderStages | stage | Shader stage. |
string | entryPoint | Entry Point. |
CompilerParameters | parameters | Compiler parameters. |
Returns
Type | Description |
---|---|
CompilationResult | Compilation result. |
CompileShader(PreprocessShader, EntryPoints, CompilerParameters)
Compiles Shader and returns.
Declaration
public CompilationResult CompileShader(PreprocessShader cleanedSource, EntryPoints entryPoints, CompilerParameters parameters)
Parameters
Type | Name | Description |
---|---|---|
PreprocessShader | cleanedSource | Clean source. |
EntryPoints | entryPoints | Entry points. |
CompilerParameters | parameters | Parameters. |
Returns
Type | Description |
---|---|
CompilationResult | Compilation result object. |
GetShaderStateDescription()
Gets the shader state description.
Declaration
public ShaderStateDescription GetShaderStateDescription()
Returns
Type | Description |
---|---|
ShaderStateDescription | The shader state description. |