ITextureCompressorModule::GetMipCountForBuildSettings

Returns the number of mips that the given texture will generate with the given build settings, as well as the size of the top mip.

Unreal Engine C++ API Reference > Developer > TextureCompressor > ITextureCompressorModule

References

   
Module TextureCompressor
Header /Engine/Source/Developer/TextureCompressor/Public/TextureCompressorModule.h
Include #include "TextureCompressorModule.h"
Source /Engine/Source/Developer/TextureCompressor/Private/TextureCompressorModule.cpp
static int32 GetMipCountForBuildSettings
(
    int32 InMip0SizeX,
    int32 InMip0SizeY,
    int32 InMip0NumSlices,
    int32 InExistingMipCount,
    const [FTextureBuildSettings](API\Developer\TextureCompressor\FTextureBuildSettings) & InBuildSettings,
    int32 & OutMip0SizeX,
    int32 & OutMip0SizeY,
    int32 & OutMip0NumSlices
)

Remarks

Returns the number of mips that the given texture will generate with the given build settings, as well as the size of the top mip. Used for physical textures - not virtual textures.


Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library