UTexture2D::GetResourceMemSettings

Calculates and returns the corresponding ResourceMem parameters for this 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

bool GetResourceMemSettings
(
    int32 FirstMipIdx,
    int32 & OutSizeX,
    int32 & OutSizeY,
    int32 & OutNumMips,
    uint32 & OutTexCreateFlags
)

Remarks

Calculates and returns the corresponding ResourceMem parameters for this texture.

Returns

true if the texture should use a ResourceMem. If false, none of the out parameters will be filled in.

Parameters

Parameter

Description

FirstMipIdx

Index of the largest mip-level stored within a seekfree (level) package

OutSizeX

[out] Width of the stored largest mip-level

OutSizeY

[out] Height of the stored largest mip-level

OutNumMips

[out] Number of stored mips

OutTexCreateFlags

[out] ETextureCreateFlags bit flags

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