RecompileChangedShadersForPlatform

Recompiles global shaders and material shaders rebuilds global shaders and also clears the cooked platform data for all materials if there is a global shader change detected can be slow

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

bool RecompileChangedShadersForPlatform
(
    const FString & PlatformName
)

Remarks

Recompiles global shaders and material shaders rebuilds global shaders and also clears the cooked platform data for all materials if there is a global shader change detected can be slow

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