CalcMipMapExtent3D

Calculates the extent of a mip.

Windows
MacOS
Linux

References

Module

RenderCore

Header

/Engine/Source/Runtime/RenderCore/Public/RenderUtils.h

Include

#include "RenderUtils.h"

Source

/Engine/Source/Runtime/RenderCore/Private/RenderUtils.cpp

Syntax

void CalcMipMapExtent3D
(
    uint32 TextureSizeX,
    uint32 TextureSizeY,
    uint32 TextureSizeZ,
    EPixelFormat Format,
    uint32 MipIndex,
    uint32 & OutXExtent,
    uint32 & OutYExtent,
    uint32 & OutZExtent
)

Remarks

Calculates the extent of a mip.

Parameters

Parameter

Description

TextureSizeX

Number of horizontal texels (for the base mip-level)

TextureSizeY

Number of vertical texels (for the base mip-level)

TextureSizeZ

Number of depth texels (for the base mip-level)

Format

Texture format

MipIndex

The index of the mip-map to compute the size of.

OutXExtent

The extent X of the mip

OutYExtent

The extent Y of the mip

OutZExtent

The extent Z of the mip

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