FDynamicRHI::RHICalcTexture2DPlatformSize

FlushType: Thread safe.

Windows
MacOS
Linux

Override Hierarchy

References

Module

RHI

Header

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

Include

#include "DynamicRHI.h"

Syntax

uint64 RHICalcTexture2DPlatformSize
(
    uint32 SizeX,
    uint32 SizeY,
    uint8 Format,
    uint32 NumMips,
    uint32 NumSamples,
    ETextureCreateFlags Flags,
    const FRHIResourceCreateInfo & CreateInfo,
    uint32 & OutAlign
)

Remarks

Computes the total size of a 2D texture with the specified parameters.

Parameters

Parameter

Description

SizeX

width of the texture to compute

SizeY

height of the texture to compute

Format

EPixelFormat texture format

NumMips

number of mips to compute or 0 for full mip pyramid

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