Module |
|
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
)
Asynchronously update a set of regions of a texture with new data.
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. |