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

void

 

CallPatchConstantFunction

(
    _mesa_glsl_parse_state* ParseS...,
    ir_variable* OutputPatchVar,
    ir_function_signature* PatchCo...,
    exec_list& DeclInstructions,
    exec_list& PostCallInstructions
)

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

void

 

GenShaderPatchConstantFunctionInputs

(
    _mesa_glsl_parse_state* ParseS...,
    ir_variable* OutputPatchVar,
    exec_list& PostCallInstructions
)

Public function Virtual

bool

 

WantsPrecisionModifiers()

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss