namespace Brutal.VulkanApi { /// /// VkSwapchainPresentScalingCreateInfoKHR - Scaling behavior when presenting to the surface /// /// /// /// When an application presents a swapchain image with dimensions different /// than those of the target surface, different behavior is possible on /// different platforms per their respective specifications: /// /// /// * Presentation fails and VK_ERROR_OUT_OF_DATE_KHR is returned /// * Scaling is done and VK_SUCCESS or VK_SUBOPTIMAL_KHR is /// returned /// * Unspecified scaling using an arbitrary combination of stretching, /// centering and/or clipping. /// /// /// Applications can define specific behavior when creating a swapchain by /// including the VkSwapchainPresentScalingCreateInfoKHR structure in the /// pNext chain of the VkSwapchainCreateInfoKHR structure. /// /// /// The VkSwapchainPresentScalingCreateInfoKHR structure is defined as: /// /// /// // Provided by VK_KHR_swapchain_maintenance1 /// typedef struct VkSwapchainPresentScalingCreateInfoKHR { /// VkStructureType sType; /// const void* pNext; /// VkPresentScalingFlagsKHR scalingBehavior; /// VkPresentGravityFlagsKHR presentGravityX; /// VkPresentGravityFlagsKHR presentGravityY; /// } VkSwapchainPresentScalingCreateInfoKHR; /// /// [StructLayout(LayoutKind.Explicit, Size = 32)] public unsafe partial struct VkSwapchainPresentScalingCreateInfoKHR() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.SwapchainPresentScalingCreateInfoKHR; /// /// Next is `NULL` or a pointer to a structure extending this structure. /// [FieldOffset(8)] public void* Next; /// /// ScalingBehavior is `0` or the scaling method to use when the dimensions of the surface and swapchain images differ. /// [FieldOffset(16)] public VkPresentScalingFlagsKHR ScalingBehavior; /// /// PresentGravityX is `0` or the x-axis direction in which swapchain image pixels gravitate relative to the surface when scalingBehavior does not result in a one-to-one pixel mapping between the scaled swapchain image and the surface. /// [FieldOffset(20)] public VkPresentGravityFlagsKHR PresentGravityX; /// /// PresentGravityY is `0` or the y-axis direction in which swapchain image pixels gravitate relative to the surface when scalingBehavior does not result in a one-to-one pixel mapping between the scaled swapchain image and the surface. /// [FieldOffset(24)] public VkPresentGravityFlagsKHR PresentGravityY; } }