Search Results for

    Show / Hide Table of Contents

    Class ShaderCompiler

    Manages the compilation of shaders.

    Inheritance
    object
    ShaderCompiler
    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)

    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
    GraphicsBackend graphicsBackend

    Graphics Backend.

    PreprocessShader cleanedSource

    Shader preprocessed source.

    ShaderStages stage

    Shader stage.

    string entryPoint

    EntryPoint.

    CompilerParameters parameters

    Compiler parameters.

    Returns
    Type Description
    CompilationResult

    Compilation result.

    CompileShader(PreprocessShader, EntryPoints, CompilerParameters)

    CompileShader and return.

    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

    Compile result object.

    GetShaderStateDescription()

    Gets the shader state description.

    Declaration
    public ShaderStateDescription GetShaderStateDescription()
    Returns
    Type Description
    ShaderStateDescription

    The shader state description.

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX