FOpenGLFrontend::PrecompileShader

Precompile a GLSL shader.

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 PrecompileShader
(
    [FShaderCompilerOutput](API\Runtime\RenderCore\FShaderCompilerOutput) & ShaderOutput,
    const [FShaderCompilerInput](API\Runtime\RenderCore\FShaderCompilerInput) & ShaderInput,
    const ANSICHAR * ShaderSource,
    [GLSLVersion](API\Developer\ShaderFormatOpenGL\GLSLVersion) Version,
    EHlslShaderFrequency Frequency
)

Remarks

Precompile a GLSL shader.

Parameters

Name Description
ShaderOutput The precompiled shader.
ShaderInput The shader input.
InPreprocessedShader The preprocessed source code.

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library