mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
74 lines
1.9 KiB
C#
74 lines
1.9 KiB
C#
#pragma warning disable 1591
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace Brutal.KtxApi
|
|
{
|
|
[StructLayout(LayoutKind.Explicit, Pack = 8)]
|
|
public unsafe partial struct KtxTexture1Native
|
|
{
|
|
[FieldOffset(0)]
|
|
public readonly ClassId ClassId;
|
|
|
|
[FieldOffset(24)]
|
|
public readonly KtxTextureProtected* Protected;
|
|
|
|
[FieldOffset(32)]
|
|
public readonly Bool8 IsArray;
|
|
|
|
[FieldOffset(33)]
|
|
public readonly Bool8 IsCubemap;
|
|
|
|
[FieldOffset(34)]
|
|
public readonly Bool8 IsCompressed;
|
|
|
|
[FieldOffset(35)]
|
|
public readonly Bool8 GenerateMipmaps;
|
|
|
|
[FieldOffset(36)]
|
|
public readonly uint BaseWidth;
|
|
|
|
[FieldOffset(40)]
|
|
public readonly uint BaseHeight;
|
|
|
|
[FieldOffset(44)]
|
|
public readonly uint BaseDepth;
|
|
|
|
[FieldOffset(48)]
|
|
public readonly uint NumDimensions;
|
|
|
|
[FieldOffset(52)]
|
|
public readonly uint NumLevels;
|
|
|
|
[FieldOffset(56)]
|
|
public readonly uint NumLayers;
|
|
|
|
[FieldOffset(60)]
|
|
public readonly uint NumFaces;
|
|
|
|
[FieldOffset(64)]
|
|
public readonly Orientation Orientation;
|
|
|
|
[FieldOffset(104)]
|
|
public readonly ulong DataSize;
|
|
|
|
[FieldOffset(112)]
|
|
public readonly byte* PData;
|
|
|
|
/// <summary>Format of the texture data, e.g., GL_RGB.</summary>
|
|
[FieldOffset(120)]
|
|
public readonly uint GlFormat;
|
|
|
|
/// <summary>Internal format of the texture data,e.g., GL_RGB8.</summary>
|
|
[FieldOffset(124)]
|
|
public readonly uint GlInternalformat;
|
|
|
|
/// <summary>Base format of the texture data,e.g., GL_RGB.</summary>
|
|
[FieldOffset(128)]
|
|
public readonly uint GlBaseInternalformat;
|
|
|
|
/// <summary>Type of the texture data, e.g, GL_UNSIGNED_BYTE.</summary>
|
|
[FieldOffset(132)]
|
|
public readonly uint GlType;
|
|
}
|
|
}
|
|
#pragma warning restore 1591
|