FEncodedTextureDescription::GetEncodedMipIterators

Convenience function for iterating over the encoded mips when you need to know how many mips are represented.

Unreal Engine C++ API Reference > Developer > TextureFormat > Interfaces > FEncodedTextureDescription

References

   
Module TextureFormat
Header /Engine/Source/Developer/TextureFormat/Public/Interfaces/ITextureFormat.h
Include #include "Interfaces/ITextureFormat.h"
void GetEncodedMipIterators
(
    const [FEncodedTextureExtendedData](API\Developer\TextureFormat\Interfaces\FEncodedTextureExtendedData) * InExtendedData,
    int32 & OutMipTailIndex,
    int32 & OutMipsInTail
) const

Remarks

Convenience function for iterating over the encoded mips when you need to know how many mips are represented. Use as:

for (int32 EncodedMipIndex = 0; EncodedMipIndex < OutMipTailIndex + 1; EncodedMipIndex++) { int32 MipsRepresentedThisIndex = EncodedMipIndex == OutMipTailIndex ? OutMipsInTail : 1; }

This handles mip chains whether or not they have packed mip tails. Note GetNumEncodedMips() == OutMipTailIndex + 1


Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library