Navigation
API > API/Runtime > API/Runtime/RHI
Description
Returns the memory required to store an image in the given pixel format (EPixelFormat). Use GPixelFormats[Format].Get2D/3DImageSizeInBytes instead, unless you need PF_A1.
| Name | CalculateImageBytes |
| Type | function |
| Header File | /Engine/Source/Runtime/RHI/Public/RHI.h |
| Include Path | #include "RHI.h" |
| Source | /Engine/Source/Runtime/RHI/Private/RHI.cpp |
SIZE_T CalculateImageBytes
(
uint32 SizeX,
uint32 SizeY,
uint32 SizeZ,
uint8 Format
)