FGlslCodeBackend::GenerateMain

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

Windows
MacOS
Linux

References

Module

ShaderFormatOpenGL

Header

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

Include

#include "GlslBackend.h"

Source

/Engine/Source/Developer/ShaderFormatOpenGL/Private/GlslBackend.cpp

Syntax

virtual bool GenerateMain
(
    EHlslShaderFrequency Frequency,
    const char * EntryPoint,
    exec_list * Instructions,
    _mesa_glsl_parse_state * ParseState
)

Remarks

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

Parameters

Parameter

Description

Frequency

The shader frequency.

EntryPoint

The name of the shader entry point.

Instructions

IR code.

ParseState

Parse state.

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