FMaterial::CacheShaders

Caches the material shaders for the given static parameter set and platform.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/MaterialShared.h

Include

#include "MaterialShared.h"

Source

/Engine/Source/Runtime/Engine/Private/Materials/MaterialShared.cpp

Syntax

bool CacheShaders
(
    const FMaterialShaderMapId & ShaderMapId,
    EShaderPlatform Platform,
    EMaterialShaderPrecompileMode PrecompileMode,
    const ITargetPlatform * TargetPlatform
)

Remarks

Caches the material shaders for the given static parameter set and platform. This is used by material resources of UMaterialInstances.

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