FLightmapResourceCluster::AcquireAllocatedVT

Allocates virtual texture on demand and returns it, may return nullptr if not using virtual texture 'const' method setting 'mutable' member is not amazing, but this is required to work around ordering of render commands submitted from main thread, it's possible for commands that want to access AllocatedVT from here execute before this has a chance to run [InitRHI()](API\Runtime\Engine\FLightmapResourceCluster\InitRHI)

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/LightMap.h

Include

#include "LightMap.h"

Source

/Engine/Source/Runtime/Engine/Private/LightMap.cpp

Syntax

IAllocatedVirtualTexture * AcquireAllocatedVT() const

Remarks

Allocates virtual texture on demand and returns it, may return nullptr if not using virtual texture 'const' method setting 'mutable' member is not amazing, but this is required to work around ordering of render commands submitted from main thread, it's possible for commands that want to access AllocatedVT from here execute before this has a chance to run InitRHI()

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