UTextureLODSettings::CalculateNumOptionalMips

Calculate num optional mips

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/TextureLODSettings.h

Include

#include "Engine/TextureLODSettings.h"

Source

/Engine/Source/Runtime/Engine/Private/TextureLODSettings.cpp

Syntax

int32 CalculateNumOptionalMips
(
    int32 LODGroup,
    const int32 Width,
    const int32 Height,
    const int32 NumMips,
    const int32 MinMipToInline,
    TextureMipGenSettings InMipGenSetting
) const

Remarks

Calculate num optional mips

Returns

Num optional mips counted from higest mip

Parameters

Parameter

Description

LODGroup

Which LOD group the texture belongs to

MipGenSetting

Mip generation setting