ITextureCompressorModule::GenerateMipChain

Generate a full mip chain. The input mip chain must have one or more mips.

Windows
MacOS
Linux

References

Module

TextureCompressor

Header

/Engine/Source/Developer/TextureCompressor/Public/TextureCompressorModule.h

Include

#include "TextureCompressorModule.h"

Source

/Engine/Source/Developer/TextureCompressor/Private/TextureCompressorModule.cpp

Syntax

static void GenerateMipChain
(
    const FTextureBuildSettings & Settings,
    const FImage & BaseImage,
    TArray< FImage > & OutMipChain,
    uint32 MipChainDepth
)

Remarks

Generate a full mip chain. The input mip chain must have one or more mips.

Parameters

Parameter

Description

Settings

Preprocess settings.

BaseImage

An image that will serve as the source for the generation of the mip chain.

OutMipChain

An array that will contain the resultant mip images. Generated mip levels are appended to the array.

MipChainDepth

number of mip images to produce. Mips chain is finished when either a 1x1 mip is produced or 'MipChainDepth' images have been produced.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss