![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <TextureStreamIn.h>
Inheritance diagram for FTextureStreamIn:Protected Attributes | |
| int32 | StartingMipIndex = INDEX_NONE |
| TUniquePtr< FTextureMipAllocator > | MipAllocator |
| FTextureMipDataProviderArray | MipDataProviders |
| FTextureUpdateSyncOptions | SyncOptions |
| FTextureMipInfoArray | MipInfos |
Protected Attributes inherited from TRenderAssetUpdate< FTextureUpdateContext > | |
| EThreadType | TaskThread |
| FCallback | TaskCallback |
| EThreadType | CancelationThread |
| FCallback | CancelationCallback |
Protected Attributes inherited from FRenderAssetUpdate | |
| const FStreamableRenderResourceState | ResourceState |
| const int32 | CurrentFirstLODIdx = INDEX_NONE |
| const int32 | PendingFirstLODIdx = INDEX_NONE |
| FCriticalSection | CS |
| int32 | ScheduledGTTasks |
| int32 | ScheduledRenderTasks |
| int32 | ScheduledAsyncTasks |
| const UStreamableRenderAsset * | StreamableAsset = nullptr |
| FThreadSafeCounter | TaskSynchronization |
| bool | bIsCancelled |
| bool | bDeferExecution |
| bool | bSuccess |
| volatile ETaskState | TaskState |
Friends | |
| class | FAbortPollMipsTask |
Additional Inherited Members | |
Public Types inherited from TRenderAssetUpdate< FTextureUpdateContext > | |
| typedef FTextureUpdateContext | FContext |
| typedef TFunction< void(const FContext &Context)> | FCallback |
Public Types inherited from FRenderAssetUpdate | |
| enum | EThreadType { TT_None , TT_Render , TT_Async , TT_GameThread , TT_GameRunningAsync } |
| enum | ETaskState { TS_Done , TS_Suspended , TS_InProgress , TS_Locked , TS_Init } |
Protected Types inherited from FRenderAssetUpdate | |
| typedef FAutoDeleteAsyncTask< FMipUpdateTask > | FAsyncMipUpdateTask |
FTextureStreamIn implements a generic framework to stream in textures while decoupling the source of the mip data (FTextureMipDataProvider) and the creation steps (FTextureMipAllocator) of the new texture. It is also texture type independent so it can be used as a base class for any streaming implementation.
The engine uses some private implementations to handle DDC and cooked content files, as well as the different texture creation strategy, but allows for custom implementations of FTextureMipDataProvider (which is an ENGINE_API) through UTextureMipDataProviderFactory (of type UAssetUserData). Those implementation can choose to override the default mip content for specific mips (see FTextureMipDataProvider::GetMips())
| FTextureStreamIn::FTextureStreamIn | ( | const UTexture * | InTexture, |
| FTextureMipAllocator * | InMipAllocator, | ||
| FTextureMipDataProvider * | InCustomMipDataProvider, | ||
| FTextureMipDataProvider * | InDefaultMipDataProvider | ||
| ) |
| FTextureStreamIn::~FTextureStreamIn | ( | ) |
|
finaloverridevirtual |
Cancel the current update. Will also attempt to cancel pending IO requests, see FTexture2DStreamIn_IO::Abort(). This is called outside of the update loop when a cancelation is required for external events.
Reimplemented from FRenderAssetUpdate.
|
protected |
|
protected |
|
protected |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |