namespace Brutal.VulkanApi { /// /// VkImageCreateInfo - Structure specifying the parameters of a newly created image object /// /// /// /// The VkImageCreateInfo structure is defined as: /// /// /// // Provided by VK_VERSION_1_0 /// typedef struct VkImageCreateInfo { /// VkStructureType sType; /// const void* pNext; /// VkImageCreateFlags flags; /// VkImageType imageType; /// VkFormat format; /// VkExtent3D extent; /// uint32_t mipLevels; /// uint32_t arrayLayers; /// VkSampleCountFlagBits samples; /// VkImageTiling tiling; /// VkImageUsageFlags usage; /// VkSharingMode sharingMode; /// uint32_t queueFamilyIndexCount; /// const uint32_t* pQueueFamilyIndices; /// VkImageLayout initialLayout; /// } VkImageCreateInfo; /// /// [StructLayout(LayoutKind.Explicit, Size = 88)] public unsafe partial struct VkImageCreateInfo() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.ImageCreateInfo; /// /// Next is `NULL` or a pointer to a structure extending this structure. /// [FieldOffset(8)] public void* Next; /// /// Flags is a bitmask of VkImageCreateFlags describing additional parameters of the image. /// [FieldOffset(16)] public VkImageCreateFlags Flags; /// /// ImageType is a VkImageType value specifying the basic dimensionality of the image. Layers in array textures do not count as a dimension for the purposes of the image type. /// [FieldOffset(20)] public VkImageType ImageType; /// /// Format is a VkFormat describing the format and type of the texel blocks that will be contained in the image. /// [FieldOffset(24)] public VkFormat Format; /// /// Extent is a VkExtent3D describing the number of texels/pixels in each dimension of the base level. /// [FieldOffset(28)] public VkExtent3D Extent; /// /// MipLevels describes the number of levels of detail available for minified sampling of the image. /// [FieldOffset(40)] public int MipLevels; /// /// ArrayLayers is the number of layers in the image. /// [FieldOffset(44)] public int ArrayLayers; /// /// Samples is a VkSampleCountFlags value specifying the number of samples per texel^. /// [FieldOffset(48)] public VkSampleCountFlags Samples; /// /// Tiling is a VkImageTiling value specifying the tiling arrangement of the texel blocks in memory. /// [FieldOffset(52)] public VkImageTiling Tiling; /// /// Usage is a bitmask of VkImageUsageFlags describing the intended usage of the image. /// [FieldOffset(56)] public VkImageUsageFlags Usage; /// /// SharingMode is a VkSharingMode value specifying the sharing mode of the image when it will be accessed by multiple queue families. /// [FieldOffset(60)] public VkSharingMode SharingMode; /// /// QueueFamilyIndexCount is the number of entries in the pQueueFamilyIndices array. /// [FieldOffset(64)] public int QueueFamilyIndexCount; /// /// QueueFamilyIndices is a pointer to an array of queue families that will access this image. It is ignored if sharingMode is not VK_SHARING_MODE_CONCURRENT. /// [FieldOffset(72)] public int* QueueFamilyIndices; /// /// InitialLayout is a VkImageLayout value specifying the initial VkImageLayout of all image subresources of the image. See Image Layouts^. /// [FieldOffset(80)] public VkImageLayout InitialLayout; } }