ITextureCompressorModule::GenerateMipChain

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

Unreal Engine C++ API Reference > Developer > TextureCompressor > ITextureCompressorModule

References

   
Module TextureCompressor
Header /Engine/Source/Developer/TextureCompressor/Public/TextureCompressorModule.h
Include #include "TextureCompressorModule.h"
Source /Engine/Source/Developer/TextureCompressor/Private/TextureCompressorModule.cpp
static void GenerateMipChain
(
    const [FTextureBuildSettings](API\Developer\TextureCompressor\FTextureBuildSettings) & Settings,
    const [FImage](API\Runtime\ImageCore\FImage) & BaseImage,
    [TArray](API\Runtime\Core\Containers\TArray)< [FImage](API\Runtime\ImageCore\FImage) > & OutMipChain,
    uint32 MipChainDepth
)

Remarks

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

Parameters

Name 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.

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library