![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <TexturePageLocks.h>
Public Member Functions | |
| FTexturePageLocks () | |
| bool | Lock (const FVirtualTextureLocalTile &Tile) |
| bool | Unlock (const FVirtualTextureLocalTile &Tile) |
| void | ForceUnlockAll (const FVirtualTextureProducerHandle &ProducerHandle, TArray< FVirtualTextureLocalTile > &OutUnlockedTiles) |
| bool | IsLocked (const FVirtualTextureLocalTile &Tile) const |
This tracks lock counts for individual VT tiles We need to track lock counts for all tiles, since different allocated VTs may try to lock/unlock the same pages, and we need a way to know when a given tile is no longer locked by anything
| FTexturePageLocks::FTexturePageLocks | ( | ) |
| void FTexturePageLocks::ForceUnlockAll | ( | const FVirtualTextureProducerHandle & | ProducerHandle, |
| TArray< FVirtualTextureLocalTile > & | OutUnlockedTiles | ||
| ) |
Force-unlock all tiles using the given producer, returns list of all tiles that were unlocked
| bool FTexturePageLocks::IsLocked | ( | const FVirtualTextureLocalTile & | Tile | ) | const |
| bool FTexturePageLocks::Lock | ( | const FVirtualTextureLocalTile & | Tile | ) |
Lock/Unlock return true if the lock state was changed
| bool FTexturePageLocks::Unlock | ( | const FVirtualTextureLocalTile & | Tile | ) |