FTextureSource::Init

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 Init
(
    int32 NewSizeX,
    int32 NewSizeY,
    int32 NewNumSlices,
    int32 NewNumMips,
    ETextureSourceFormat NewFormat,
    const uint8 * NewData
)

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.

NewNumSlices

The number of slices in the texture source data.

NewNumMips

The number of mips in the texture source data.

NewFormat

The format in which source data is stored.

NewData

[optional] The new source data.