UTexture2D::CalcAllowedMips

Computes the minimum and maximum allowed mips for a texture.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/Texture2D.h

Include

#include "Engine/Texture2D.h"

Source

/Engine/Source/Runtime/Engine/Private/Texture2D.cpp

Syntax

static void CalcAllowedMips
(
    int32 MipCount,
    int32 NumNonStreamingMips,
    int32 LODBias,
    int32 & OuMinAllowedMips,
    int32 & OutMaxAllowedMips
)

Remarks

Computes the minimum and maximum allowed mips for a texture.

Parameters

Parameter

Description

MipCount

The number of mip levels in the texture.

NumNonStreamingMips

The number of mip levels that are not allowed to stream.

LODBias

Bias applied to the number of mip levels.

OutMinAllowedMips

Returns the minimum number of mip levels that must be loaded.

OutMaxAllowedMips

Returns the maximum number of mip levels that must be loaded.

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