FGlslCodeBackend

Generates GLSL compliant code from IR tokens.

Windows
MacOS
Linux

Inheritance Hierarchy

FCodeBackend

FGlslCodeBackend

References

Module

ShaderFormatOpenGL

Header

/Engine/Source/Developer/ShaderFormatOpenGL/Public/GlslBackend.h

Include

#include "GlslBackend.h"

Syntax

struct FGlslCodeBackend : public FCodeBackend

Remarks

Generates GLSL compliant code from IR tokens.

Variables

Name Description

Public variable

bool

 

bExplicitDepthWrites

Constructors

Name Description

Public function

FGlslCodeBackend

(
    unsigned int InHlslCompileFlags,
    EHlslCompileTarget InTarget
)

Functions

Name Description

Public function Virtual

bool

 

AllowsESLanguage()

Public function Virtual

bool

 

AllowsGlobalUniforms()

Subclass functionality

Public function Virtual

bool

 

ApplyAndVerifyPlatformRestrictions

(
    exec_list* Instructions,
    _mesa_glsl_parse_state* ParseS...,
    EHlslShaderFrequency Frequency
)

Return false if there were restrictions that made compilation fail.

Public function

ir_function_...

 

FindPatchConstantFunction

(
    exec_list* Instructions,
    _mesa_glsl_parse_state* ParseS...
)

Public function Virtual

char *

 

GenerateCode

(
    exec_list* ir,
    _mesa_glsl_parse_state* ParseS...,
    EHlslShaderFrequency Frequency
)

Public function Virtual

bool

 

GenerateMain

(
    EHlslShaderFrequency Frequency,
    const char* EntryPoint,
    exec_list* Instructions,
    _mesa_glsl_parse_state* ParseS...
)

Generate a GLSL main() function that calls the entry point and handles reading and writing all input and output semantics.

Public function Virtual

bool

 

WantsPrecisionModifiers()