CalcTextureSize3D

Calculates the amount of memory used for a texture.

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

SIZE_T CalcTextureSize3D
(
    uint32 SizeX,
    uint32 SizeY,
    uint32 SizeZ,
    EPixelFormat Format,
    uint32 MipCount
)

Remarks

Calculates the amount of memory used for a texture.

Parameters

Parameter

Description

SizeX

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

SizeY

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

SizeY

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

Format

Texture format

MipCount

Number of mip-levels (including the base mip-level)

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