FOpenGLFrontend::PrecompileShader

Precompile a GLSL shader.

Windows
MacOS
Linux

References

Module

ShaderFormatOpenGL

Header

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

Include

#include "ShaderFormatOpenGL.h"

Source

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

Syntax

void PrecompileShader
(
    FShaderCompilerOutput & ShaderOutput,
    const FShaderCompilerInput & ShaderInput,
    const ANSICHAR * ShaderSource,
    GLSLVersion Version,
    EHlslShaderFrequency Frequency
)

Remarks

Precompile a GLSL shader.

Parameters

Parameter

Description

ShaderOutput

The precompiled shader.

ShaderInput

The shader input.

InPreprocessedShader

The preprocessed source code.

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