FMaterialRenderProxy::CacheUniformExpressions_GameThread

Enqueues a rendering command to cache uniform expressions for efficient runtime evaluation.

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

void CacheUniformExpressions_GameThread
(
    bool bRecreateUniformBuffer
)

Remarks

Enqueues a rendering command to cache uniform expressions for efficient runtime evaluation. bRecreateUniformBuffer - whether to recreate the material uniform buffer. This is required if the FMaterial is being recompiled (the uniform buffer layout will change). This should only be done if the calling code is using FMaterialUpdateContext to recreate the rendering state of primitives using this material, since cached mesh commands also cache uniform buffer pointers.

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