Module |
|
Header |
/Engine/Source/Runtime/RenderCore/Public/RenderUtils.h |
Include |
#include "RenderUtils.h" |
Source |
/Engine/Source/Runtime/RenderCore/Private/RenderUtils.cpp |
SIZE_T CalcTextureSize
(
uint32 SizeX,
uint32 SizeY,
EPixelFormat Format,
uint32 MipCount
)
Calculates the amount of memory used for a texture.
Parameter |
Description |
---|---|
SizeX |
Number of horizontal texels (for the base mip-level) |
SizeY |
Number of vertical texels (for the base mip-level) |
Format |
Texture format |
MipCount |
Number of mip-levels (including the base mip-level) |