FMaterial::CacheShaders

Caches the material shaders for this material on the given 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
(
    EShaderPlatform Platform,
    const ITargetPlatform * TargetPlatform
)

Remarks

Caches the material shaders for this material on the given platform. This is used by material resources of UMaterials.

Caches the material shaders for this material with no static parameters on the given platform. This is used by material resources of UMaterials.

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