Enum
VkSwapchainCreateFlagBitsKHR
Bitmask controlling swapchain creation
Bits which can be set in VkSwapchainCreateInfoKHR::flags,
specifying parameters of swapchain creation, are:
typedef enum VkSwapchainCreateFlagBitsKHR {
// Provided by extensions
VK_SWAPCHAIN_CREATE_SPLIT_INSTANCE_BIND_REGIONS_BIT_KHR = 0x00000001,
VK_SWAPCHAIN_CREATE_PROTECTED_BIT_KHR = 0x00000002,
VK_SWAPCHAIN_CREATE_MUTABLE_FORMAT_BIT_KHR = 0x00000004,
VK_SWAPCHAIN_CREATE_PRESENT_TIMING_BIT_EXT = 0x00000200,
VK_SWAPCHAIN_CREATE_DEFERRED_MEMORY_ALLOCATION_BIT_EXT = VK_SWAPCHAIN_CREATE_DEFERRED_MEMORY_ALLOCATION_BIT_KHR,
VK_SWAPCHAIN_CREATE_RESERVED_5_BIT_EXT = 0x00000020,
VK_SWAPCHAIN_CREATE_RESERVED_4_BIT_EXT = 0x00000010,
VK_SWAPCHAIN_CREATE_PRESENT_ID_2_BIT_KHR = 0x00000040,
VK_SWAPCHAIN_CREATE_PRESENT_WAIT_2_BIT_KHR = 0x00000080,
VK_SWAPCHAIN_CREATE_DEFERRED_MEMORY_ALLOCATION_BIT_KHR = 0x00000008,
VK_SWAPCHAIN_CREATE_RESERVED_8_BIT_EXT = 0x00000100,
} VkSwapchainCreateFlagBitsKHR;
pub struct SwapchainCreateFlagBitsKHR(u32);
impl SwapchainCreateFlagBitsKHR {
pub const SPLIT_INSTANCE_BIND_REGIONS: Self = 0x00000001;
pub const PROTECTED: Self = 0x00000002;
pub const MUTABLE_FORMAT: Self = 0x00000004;
pub const PRESENT_TIMING_EXT: Self = 0x00000200;
pub const DEFERRED_MEMORY_ALLOCATION_EXT: Self = Self::DEFERRED_MEMORY_ALLOCATION;
pub const RESERVED_5_EXT: Self = 0x00000020;
pub const RESERVED_4_EXT: Self = 0x00000010;
pub const PRESENT_ID_2: Self = 0x00000040;
pub const PRESENT_WAIT_2: Self = 0x00000080;
pub const DEFERRED_MEMORY_ALLOCATION: Self = 0x00000008;
pub const RESERVED_8_EXT: Self = 0x00000100;
}
VK_SWAPCHAIN_CREATE_SPLIT_INSTANCE_BIND_REGIONS_BIT_KHRspecifies that images created from the swapchain (i.e. with theswapchainmember of VkImageSwapchainCreateInfoKHR set to this swapchain’s handle) must useVK_IMAGE_CREATE_SPLIT_INSTANCE_BIND_REGIONS_BIT.VK_SWAPCHAIN_CREATE_PROTECTED_BIT_KHRspecifies that images created from the swapchain are protected images.VK_SWAPCHAIN_CREATE_MUTABLE_FORMAT_BIT_KHRspecifies that the images of the swapchain can be used to create aVkImageViewwith a different format than what the swapchain was created with. The list of allowed image view formats is specified by adding a VkImageFormatListCreateInfo structure to thepNextchain of VkSwapchainCreateInfoKHR. In addition, this flag also specifies that the swapchain can be created with usage flags that are not supported for the format the swapchain is created with but are supported for at least one of the allowed image view formats.VK_SWAPCHAIN_CREATE_DEFERRED_MEMORY_ALLOCATION_BIT_KHRspecifies that the implementation may defer allocation of memory associated with each swapchain image until its index is to be returned from vkAcquireNextImageKHR or vkAcquireNextImage2KHR for the first time.VK_SWAPCHAIN_CREATE_PRESENT_ID_2_BIT_KHRspecifies that applications can include theVkPresentId2KHRstructure in thepNextchain of the VkPresentInfoKHR structure to associate an identifier with each presentation request.VK_SWAPCHAIN_CREATE_PRESENT_WAIT_2_BIT_KHRspecifies that applications can usevkWaitForPresent2KHRto wait for the presentation engine to have begun presentation of the presentation request associated with VkPresentWait2InfoKHR::presentIdonswapchain.VK_SWAPCHAIN_CREATE_PRESENT_TIMING_BIT_EXTspecifies that features supported by the swapchain device in VkPhysicalDevicePresentTimingFeaturesEXT can be used to collect timing information or schedule presentation requests at specific times.
Parent
VK_KHR_swapchainType
Enum