UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FTexturePageLocks Class Reference

#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
 

Detailed Description

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

Constructor & Destructor Documentation

◆ FTexturePageLocks()

FTexturePageLocks::FTexturePageLocks ( )

Member Function Documentation

◆ ForceUnlockAll()

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

◆ IsLocked()

bool FTexturePageLocks::IsLocked ( const FVirtualTextureLocalTile Tile) const

◆ Lock()

bool FTexturePageLocks::Lock ( const FVirtualTextureLocalTile Tile)

Lock/Unlock return true if the lock state was changed

◆ Unlock()

bool FTexturePageLocks::Unlock ( const FVirtualTextureLocalTile Tile)

The documentation for this class was generated from the following files: