csharp
public readonly record struct Ktx2LevelWhere one level of a KTX2 file is, said without having read it.
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 LevelWhich mip level, zero being the largest.
public int WidthIts width in pixels.
public int HeightIts height in pixels.
public int DepthIts depth in pixels.
public long OffsetWhere its bytes start in the file.
public long LengthHow 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