FOpenGLFrontend::CompileShader

Compile a shader for OpenGL on Windows.

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 CompileShader
(
    const struct FShaderCompilerInput & Input,
    struct FShaderCompilerOutput & Output,
    const class FString & WorkingDirectory,
    GLSLVersion Version
)

Remarks

Compile a shader for OpenGL on Windows.

Parameters

Parameter

Description

Input

The input shader code and environment.

Output

Contains shader compilation results upon return.

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