Navigation
API > API/Runtime > API/Runtime/RenderCore
Description
Calculates the amount of memory used for a texture.
Use GPixelFormats[Format].Get3DTextureSizeInBytes() instead.
| Name | CalcTextureSize3D |
| Type | function |
| Header File | /Engine/Source/Runtime/RenderCore/Public/RenderUtils.h |
| Include Path | #include "RenderUtils.h" |
| Source | /Engine/Source/Runtime/RenderCore/Private/RenderUtils.cpp |
SIZE_T CalcTextureSize3D
(
uint32 SizeX,
uint32 SizeY,
uint32 SizeZ,
EPixelFormat Format,
uint32 MipCount
)
Parameters
| Name | Remarks |
|---|---|
| SizeX | Number of horizontal texels (for the base mip-level) |
| SizeY | Number of vertical texels (for the base mip-level) |
| SizeY | Number of depth texels (for the base mip-level) |
| Format | Texture format |
| MipCount | Number of mip-levels (including the base mip-level) |