Module |
|
Header |
/Engine/Source/Runtime/RenderCore/Public/RenderUtils.h |
Include |
#include "RenderUtils.h" |
Source |
/Engine/Source/Runtime/RenderCore/Private/RenderUtils.cpp |
SIZE_T CalcTextureMipWidthInBlocks
(
uint32 TextureSizeX,
EPixelFormat Format,
uint32 MipIndex
)
Calculates the width of a mip, in blocks.
Parameter |
Description |
---|---|
TextureSizeX |
Number of horizontal texels (for the base mip-level) |
Format |
Texture format |
MipIndex |
The index of the mip-map to compute the size of. |