UTexture2D::UpdateTextureRegions

Asynchronously update a set of regions of a texture with new data.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/Texture2D.h

Include

#include "Engine/Texture2D.h"

Source

/Engine/Source/Runtime/Engine/Private/Texture2D.cpp

Syntax

void UpdateTextureRegions
(
    int32 MipIndex,
    uint32 NumRegions,
    const FUpdateTextureRegion2D * Regions,
    uint32 SrcPitch,
    uint32 SrcBpp,
    uint8 * SrcData,
    TFunction< void *SrcData, const FUpdateTextureRegion2D *Regions)> DataCleanupFunc
)

Remarks

Asynchronously update a set of regions of a texture with new data.

Parameters

Parameter

Description

MipIndex

the mip number to update

NumRegions

number of regions to update

Regions

regions to update

SrcPitch

the pitch of the source data in bytes

SrcBpp

the size one pixel data in bytes

SrcData

the source data

bFreeData

if true, the SrcData and Regions pointers will be freed after the update.