Navigation
API > API/Developer > API/Developer/TextureFormat
Description
Return how many mips need to be inlined for the given texture properties. This pays attention to runtime size restrictions and should be used for serializing cooked data.
InNumMips, InTopMipSizeX, InTopMipSizeY must all be sizes before any LOD stripping during cook, with the expectation that the returned value is verified against the remaining mip count after LOD stripping.
This function is not valid if streaming is disabled for the texture.
| Name | GetNumNonStreamingMipsDirect |
| Type | function |
| Header File | /Engine/Source/Developer/TextureFormat/Public/Interfaces/ITextureFormat.h |
| Include Path | #include "Interfaces/ITextureFormat.h" |
static int32 GetNumNonStreamingMipsDirect
(
int32 InNumMips,
int32 InTopMipSizeX,
int32 InTopMipSizeY,
EPixelFormat InPixelFormat,
int32 InNumMipsInTail,
int32 InNumInlineDerivedMips
)