Vixen
caa30e12
csharp
public readonly record struct Ktx2Level

Where one level of a KTX2 file is, said without having read it.

Read the guide page for this →

Remarks

⚠ Offset is a file offset, unlike Offset, which is an offset into a decoded texture's buffer. The two run in opposite directions — see Ktx2 on why the file stores levels smallest first — so mixing them up produces a texture whose mips are in the wrong order rather than an error.

Fields and properties (6)

  • public int Level

    Which mip level, zero being the largest.

  • public int Width

    Its width in pixels.

  • public int Height

    Its height in pixels.

  • public int Depth

    Its depth in pixels.

  • public long Offset

    Where its bytes start in the file.

  • public long Length

    How many bytes it is.

Methods (1)

  • public Ktx2Level(int Level, int Width, int Height, int Depth, long Offset, long Length)

    Where one level of a KTX2 file is, said without having read it.

Used by (4)

  • AssetTextureSourceVixen.Engine.Renderer
  • Ktx2Vixen.Core.Imaging
  • Ktx2LayoutVixen.Core.Imaging
  • Ktx2TestsVixen.Core.Imaging.Tests