FOpenGLDynamicRHI::RHICalcTexture2DPlatformSize

Override Hierarchy

FDynamicRHI::RHICalcTexture2DPlatformSize()

FOpenGLDynamicRHI::RHICalcTexture2DPlatformSize()

Syntax

virtual uint64 RHICalcTexture2DPlatformSize
(
    uint32 SizeX,
    uint32 SizeY,
    uint8 Format,
    uint32 NumMips,
    uint32 NumSamples,
    uint32 Flags,
    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.

References

Module

OpenGLDrv

Header

Runtime/OpenGLDrv/Public/OpenGLDrv.h

Source

Runtime/OpenGLDrv/Private/OpenGLTexture.cpp