BeginRecompileGlobalShaders

Begins recompiling the specified global shader types, and flushes their bound shader states.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/ShaderCompiler.h

Include

#include "ShaderCompiler.h"

Source

/Engine/Source/Runtime/Engine/Private/ShaderCompiler/ShaderCompiler.cpp

Syntax

void BeginRecompileGlobalShaders
(
    const TArray< const FShaderType * > & OutdatedShaderTypes,
    const TArray< const FShaderPipelineType * > & OutdatedShaderPipelineTypes,
    EShaderPlatform ShaderPlatform,
    const ITargetPlatform * TargetPlatform
)

Remarks

Begins recompiling the specified global shader types, and flushes their bound shader states. FinishRecompileGlobalShaders must be called after this and before using the global shaders for anything.

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