FDynamicRHI::RHICalcVMTexture2DPlatformSize

FlushType: Thread safe.

Windows
MacOS
Linux

References

Module

RHI

Header

/Engine/Source/Runtime/RHI/Public/DynamicRHI.h

Include

#include "DynamicRHI.h"

Source

/Engine/Source/Runtime/RHI/Private/DynamicRHI.cpp

Syntax

virtual uint64 RHICalcVMTexture2DPlatformSize
(
    uint32 Mip0Width,
    uint32 Mip0Height,
    uint8 Format,
    uint32 NumMips,
    uint32 FirstMipIdx,
    uint32 NumSamples,
    uint32 Flags,
    uint32 & OutAlign
)

Remarks

Computes the total size of a virtual memory (VM) based 2D texture with the specified parameters.

Parameters

Parameter

Description

Mip0Width

width of the top mip

Mip0Height

height of the top mip

Format

EPixelFormat texture format

NumMips

number of mips the texture has

FirstMipIdx

index of the first resident mip

NumSamples

number of MSAA samples, usually 1

Flags

ETextureCreateFlags creation flags

OutAlign

Alignment required for this texture. Output parameter.

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