FMaterialParameterCollectionInstanceResource::GameThread_UpdateContents

Update the contents of the uniform buffer, called from the game thread.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/ParameterCollection.h

Include

#include "ParameterCollection.h"

Source

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

Syntax

void GameThread_UpdateContents
(
    const FGuid & InId,
    const TArray< FVector4 > & Data,
    const FName & InOwnerName,
    bool bRecreateUniformBuffer
)

Remarks

Update the contents of the uniform buffer, called from the game thread. bRecreateUniformBuffer must be false if any components have their rendering state created which might reference this! The calling code is responsible for issuing a FGlobalComponentRecreateRenderStateContext before modifying. Otherwise cached mesh draw commands will be left with a dangling pointer.

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