![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <VirtualTextureUploadCache.h>
Inheritance diagram for FVirtualTextureUploadCache:Finalizer implementation for uploading virtual textures. Handles management of upload buffers and copying streamed data to the GPU physical texture.
| FVirtualTextureUploadCache::FVirtualTextureUploadCache | ( | ) |
| void FVirtualTextureUploadCache::CancelTile | ( | FRHICommandListBase & | RHICmdList, |
| const FVTUploadTileHandle & | InHandle | ||
| ) |
Cancel a tile that was already in flight.
|
overridevirtual |
Finalize work that has write only access to the virtual texture physical pools.
Implements IVirtualTextureFinalizer.
| uint32 FVirtualTextureUploadCache::IsInMemoryBudget | ( | ) | const |
Returns true if underlying allocator within the budget set by r.VT.MaxUploadMemory.
| FVTUploadTileHandle FVirtualTextureUploadCache::PrepareTileForUpload | ( | FRHICommandListBase & | RHICmdList, |
| FVTUploadTileBuffer & | OutBuffer, | ||
| EPixelFormat | InFormat, | ||
| uint32 | InTileSize | ||
| ) |
Get a staging upload buffer for streaming texture data into.
|
overridevirtual |
Releases the RHI resources used by this resource. Called when leaving the state where both the resource and the RHI have been initialized. This is only called by the rendering thread.
Reimplemented from FRenderResource.
| void FVirtualTextureUploadCache::SubmitTile | ( | FRHICommandListBase & | RHICmdList, |
| const FVTUploadTileHandle & | InHandle, | ||
| const FVTProduceTargetLayer & | Target, | ||
| int | InSkipBorderSize | ||
| ) |
Mark streamed upload data ready for upload to to the physical virtual texture. Depending on the platform the upload might happen here, or be deferred to the Finalize() call.
| void FVirtualTextureUploadCache::UpdateFreeList | ( | FRHICommandListBase & | RHICmdList, |
| bool | bForceFreeAll = false |
||
| ) |
Call on a tick to recycle submitted staging buffers.