FTextureMipDataProvider::Init

Initialize data prelimary to the [GetMips()](API\Runtime\Engine\Streaming\FTextureMipDataProvider\GetMips) step.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/Streaming/TextureMipDataProvider.h

Include

#include "Streaming/TextureMipDataProvider.h"

Syntax

void Init
(
    const FTextureUpdateContext & Context,
    const FTextureUpdateSyncOptions & SyncOptions
)

Remarks

Initialize data prelimary to the GetMips() step. Can be called several time. Mostly useful to simplify the logic in GetMips(). This is because GetMips is a chained call between all mip data providers, each taking some mips to handle, and is not compatible with multi step process. This means that GetMips() must return immediately and can not postpone or delay return by not advancing to the next steps.

Parameters

Parameter

Description

Context

An update context constant throughout the FTextureStreamIn update. Gives things like which texture asset is updated and what mips are streamed in.

SyncOptions

Different sync options to control when the next tick of FTextureStreamIn can be scheduled.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss