FOpenGLFrontend::CompileShader

Compile a shader for OpenGL on Windows.

Unreal Engine C++ API Reference > Developer > ShaderFormatOpenGL > FOpenGLFrontend

References

   
Module ShaderFormatOpenGL
Header /Engine/Source/Developer/ShaderFormatOpenGL/Public/ShaderFormatOpenGL.h
Include #include "ShaderFormatOpenGL.h"
Source /Engine/Source/Developer/ShaderFormatOpenGL/Private/OpenGLShaderCompiler.cpp
void CompileShader
(
    const struct [FShaderCompilerInput](API\Runtime\RenderCore\FShaderCompilerInput) & Input,
    struct [FShaderCompilerOutput](API\Runtime\RenderCore\FShaderCompilerOutput) & Output,
    const class [FString](API\Runtime\Core\Containers\FString) & WorkingDirectory,
    [GLSLVersion](API\Developer\ShaderFormatOpenGL\GLSLVersion) Version
)

Remarks

Compile a shader for OpenGL on Windows.

Parameters

Name Description
Input The input shader code and environment.
Output Contains shader compilation results upon return.

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library