FTextureSource::InitWithCompressedSourceData

Initialize the source data with the given size, number of mips, and format.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/Texture.h

Include

#include "Engine/Texture.h"

Source

/Engine/Source/Runtime/Engine/Private/Texture.cpp

Syntax

void InitWithCompressedSourceData
(
    int32 NewSizeX,
    int32 NewSizeY,
    int32 NewNumMips,
    ETextureSourceFormat NewFormat,
    const TArrayView64< uint8 > NewSourceData,
    ETextureSourceCompressionFormat NewSourceFormat
)

Remarks

Initialize the source data with the given size, number of mips, and format.

Parameters

Parameter

Description

NewSizeX

Width of the texture source data.

NewSizeY

Height of the texture source data.

NewNumMips

The number of mips in the texture source data.

NewFormat

The format in which source data is stored.

NewSourceData

The new source data.

NewSourceFormat

The compression format of the new source data.