| FDynamicRHI::RHICalcTexture2DPlatformSize()
|
Module |
|
Header |
/Engine/Source/Runtime/RHI/Public/DynamicRHI.h |
Include |
#include "DynamicRHI.h" |
uint64 RHICalcTexture2DPlatformSize
(
uint32 SizeX,
uint32 SizeY,
uint8 Format,
uint32 NumMips,
uint32 NumSamples,
ETextureCreateFlags Flags,
const FRHIResourceCreateInfo & CreateInfo,
uint32 & OutAlign
)
Computes the total size of a 2D texture with the specified 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. |