Search Results for

    Show / Hide Table of Contents

    Class IShaderParser

    Interface describing shader source code parser

    Inheritance
    IShaderParser
    Namespace: ShaderProcessing
    Assembly: FlaxEngine.dll
    File: Engine/ShadersCompilation/Parser/IShaderParser.h
    Syntax
    public class IShaderParser

    Constructors

    ~IShaderParser()

    Virtual destructor

    Declaration
    public virtual ~IShaderParser()

    Methods

    Failed()

    Gets value indicating that shader processing operation failed

    Declaration
    public virtual bool Failed() const = 0
    Returns
    bool

    True if shader processing failed, otherwise false

    GetFeatureLevel()

    Gets the parser feature level of the target platform graphics backend.

    Declaration
    public virtual FeatureLevel GetFeatureLevel() const = 0
    Returns
    FeatureLevel

    The graphics feature level

    GetMacros()

    Gets the parser macros.

    Declaration
    public virtual ParserMacros GetMacros() const = 0
    Returns
    ParserMacros

    The macros

    GetReader()

    Gets source code reader

    Declaration
    public virtual Reader GetReader() = 0
    Returns
    Reader

    Source code reader

    OnError(const String& message)

    Event send to the parser on reading shader source code error

    Declaration
    public virtual void OnError(const String& message) = 0
    Parameters
    String message

    Message to send

    OnWarning(const String& message)

    Event send to the parser on reading shader source code warning

    Declaration
    public virtual void OnWarning(const String& message) = 0
    Parameters
    String message

    Message to send

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat