UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
Texture2DArrayStreaming.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3/*=============================================================================
4Texture2DArrayStreaming.h: Helpers to stream in and out texture 2D array LODs.
5=============================================================================*/
6
7#pragma once
8
9#include "CoreMinimal.h"
10#include "RenderAssetUpdate.h"
15#include "TextureMipAllocator.h"
16
17#if WITH_EDITORONLY_DATA
19#endif
20
22
27{
28public:
29
32
33 // ********************************************************
34 // ********* FTextureMipAllocator implementation **********
35 // ********************************************************
36
38 bool UploadMips(const FTextureUpdateContext& Context, const FTextureUpdateSyncOptions& SyncOptions) final override;
39 void Cancel(const FTextureUpdateSyncOptions& SyncOptions) final override;
40 ETickThread GetCancelThread() const final override;
41
42protected:
43
44 // Used to free memory allocated from a TUniquePtr
46 {
51 };
52
53 // The temporary main memory allocations holding the mip data
56};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
FTexture2DMipDataProvider_IO FTexture2DArrayMipDataProvider_IO
Definition Texture2DArrayStreaming.h:21
uint8_t uint8
Definition binka_ue_file_header.h:8
Definition Texture2DArrayStreaming.h:27
TArray< uint64, TInlineAllocator< MAX_TEXTURE_MIP_COUNT > > StreamedSliceSize
Definition Texture2DArrayStreaming.h:55
ETickThread GetCancelThread() const final override
Definition Texture2DArrayStreaming.cpp:127
TArray< TUniquePtr< uint8, FMallocDeleter >, TInlineAllocator< MAX_TEXTURE_MIP_COUNT > > StreamedMipData
Definition Texture2DArrayStreaming.h:54
~FTexture2DArrayMipAllocator_Reallocate()
Definition Texture2DArrayStreaming.cpp:23
Definition Texture2DMipDataProvider_IO.h:19
Definition TextureMipAllocator.h:19
ETickThread
Definition TextureMipAllocator.h:30
Definition ContainerAllocationPolicies.h:894
Definition Texture.h:1219
static FORCENOINLINE CORE_API void Free(void *Original)
Definition UnrealMemory.cpp:685
Definition Texture2DArrayStreaming.h:46
void operator()(uint8 *Buffer)
Definition Texture2DArrayStreaming.h:47
Definition TextureMipDataProvider.h:65
Definition TextureMipDataProvider.h:48