UTexture2DArray::CalcTextureMemorySize

Calculates the size of this texture in bytes if it had MipCount mip-levels streamed in.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/Texture2DArray.h

Include

#include "Engine/Texture2DArray.h"

Source

/Engine/Source/Runtime/Engine/Classes/Engine/Texture2DArray.cpp

Syntax

uint32 CalcTextureMemorySize
(
    int32 MipCount
) const

Remarks

Calculates the size of this texture in bytes if it had MipCount mip-levels streamed in.

Returns

Size of MipCount mips in bytes

Parameters

Parameter

Description

MipCount

Number of mips to calculate size for, counting from the smallest 1x1 mip-level and up.