Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Engine > UTexture2D
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 |
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
Name | 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 |
DataCleanupFunc | a function that will be called to clean up the SrcData and Regions after the update. |