FOpenGLProgramBinaryCache::DeferShaderCompilation

Defer shader compilation until we link a program, so we will have a chance to load cached binary and skip compilation

Choose your operating system:

Windows

macOS

Linux

References

Module

OpenGLDrv

Header

/Engine/Source/Runtime/OpenGLDrv/Public/OpenGLShaderResources.h

Include

#include "OpenGLShaderResources.h"

Source

/Engine/Source/Runtime/OpenGLDrv/Private/OpenGLShaders.cpp

Syntax

static bool DeferShaderCompilation
(
    GLuint Shader,
    const TArray< ANSICHAR > & GlslCode
)

Remarks

Defer shader compilation until we link a program, so we will have a chance to load cached binary and skip compilation