namespace Brutal.VulkanApi
{
///
/// VkSwapchainCreateInfoKHR - Structure specifying parameters of a newly created swapchain object
///
///
///
/// The VkSwapchainCreateInfoKHR structure is defined as:
///
///
/// // Provided by VK_KHR_swapchain
/// typedef struct VkSwapchainCreateInfoKHR {
/// VkStructureType sType;
/// const void* pNext;
/// VkSwapchainCreateFlagsKHR flags;
/// VkSurfaceKHR surface;
/// uint32_t minImageCount;
/// VkFormat imageFormat;
/// VkColorSpaceKHR imageColorSpace;
/// VkExtent2D imageExtent;
/// uint32_t imageArrayLayers;
/// VkImageUsageFlags imageUsage;
/// VkSharingMode imageSharingMode;
/// uint32_t queueFamilyIndexCount;
/// const uint32_t* pQueueFamilyIndices;
/// VkSurfaceTransformFlagBitsKHR preTransform;
/// VkCompositeAlphaFlagBitsKHR compositeAlpha;
/// VkPresentModeKHR presentMode;
/// VkBool32 clipped;
/// VkSwapchainKHR oldSwapchain;
/// } VkSwapchainCreateInfoKHR;
///
///
[StructLayout(LayoutKind.Explicit, Size = 104)]
public unsafe partial struct VkSwapchainCreateInfoKHR()
{
///
/// sType is a VkStructureType value identifying this structure.
///
[FieldOffset(0)]
internal readonly VkStructureType sType = VkStructureType.SwapchainCreateInfoKHR;
///
/// Next is `NULL` or a pointer to a structure extending this structure.
///
[FieldOffset(8)]
public void* Next;
///
/// Flags is a bitmask of VkSwapchainCreateFlagsKHR indicating parameters of the swapchain creation.
///
[FieldOffset(16)]
public VkSwapchainCreateFlagsKHR Flags;
///
/// Surface is the surface onto which the swapchain will present images. If the creation succeeds, the swapchain becomes associated with surface.
///
[FieldOffset(24)]
public VkSurfaceKHR Surface;
///
/// MinImageCount is the minimum number of presentable images that the application needs. The implementation will either create the swapchain with at least that many images, or it will fail to create the swapchain.
///
[FieldOffset(32)]
public int MinImageCount;
///
/// ImageFormat is a VkFormat value specifying the format the swapchain image(s) will be created with.
///
[FieldOffset(36)]
public VkFormat ImageFormat;
///
/// ImageColorSpace is a VkColorSpaceKHR value specifying the way the swapchain interprets image data.
///
[FieldOffset(40)]
public VkColorSpaceKHR ImageColorSpace;
///
/// ImageExtent is the size (in pixels) of the swapchain image(s). The behavior is platform-dependent if the image extent does not match the surface's currentExtent as returned by vkGetPhysicalDeviceSurfaceCapabilitiesKHR. + [NOTE]
///
[FieldOffset(44)]
public VkExtent2D ImageExtent;
///
/// ImageArrayLayers
///
[FieldOffset(52)]
public int ImageArrayLayers;
///
/// ImageUsage
///
[FieldOffset(56)]
public VkImageUsageFlags ImageUsage;
///
/// ImageSharingMode
///
[FieldOffset(60)]
public VkSharingMode ImageSharingMode;
///
/// QueueFamilyIndexCount
///
[FieldOffset(64)]
public int QueueFamilyIndexCount;
///
/// QueueFamilyIndices
///
[FieldOffset(72)]
public int* QueueFamilyIndices;
///
/// PreTransform
///
[FieldOffset(80)]
public VkSurfaceTransformFlagsKHR PreTransform;
///
/// CompositeAlpha
///
[FieldOffset(84)]
public VkCompositeAlphaFlagsKHR CompositeAlpha;
///
/// PresentMode
///
[FieldOffset(88)]
public VkPresentModeKHR PresentMode;
///
/// Clipped
///
[FieldOffset(92)]
public Brutal.Bool32 Clipped;
///
/// OldSwapchain
///
[FieldOffset(96)]
public VkSwapchainKHR OldSwapchain;
}
}