#pragma warning disable 1591 using System.Runtime.InteropServices; namespace Brutal.KtxApi { [StructLayout(LayoutKind.Explicit, Pack = 8)] public unsafe partial struct KtxTextureCreateInfo { /// Internal format for the texture, e.g.,GL_RGB8. Ignored when creating aktxTexture2. [FieldOffset(0)] public uint GlInternalformat; /// VkFormat for texture. Ignored when creating aktxTexture1. [FieldOffset(4)] public uint VkFormat; /// Pointer to DFD. Used only when creating aktxTexture2 and only if vkFormat isVK_FORMAT_UNDEFINED. [FieldOffset(8)] public uint* PDfd; /// Width of the base level of the texture. [FieldOffset(16)] public uint BaseWidth; /// Height of the base level of the texture. [FieldOffset(20)] public uint BaseHeight; /// Depth of the base level of the texture. [FieldOffset(24)] public uint BaseDepth; /// Number of dimensions in the texture, 1, 2or 3. [FieldOffset(28)] public uint NumDimensions; /// Number of mip levels in the texture. Should be1 if @c generateMipmaps is KTX_TRUE; [FieldOffset(32)] public uint NumLevels; /// Number of array layers in the texture. [FieldOffset(36)] public uint NumLayers; /// Number of faces: 6 for cube maps, 1 otherwise. [FieldOffset(40)] public uint NumFaces; /// Set to KTX_TRUE if the texture is to be anarray texture. Means OpenGL will use aGL_TEXTURE_*_ARRAY target. [FieldOffset(44)] public Bool8 IsArray; /// Set to KTX_TRUE if mipmaps should begenerated for the texture when loadinginto a 3D API. [FieldOffset(45)] public Bool8 GenerateMipmaps; } } #pragma warning restore 1591