Struct voodoo::SwapchainKhrBuilder [] [src]

pub struct SwapchainKhrBuilder<'b> { /* fields omitted */ }

A Swapchain builder.

Methods

impl<'b> SwapchainKhrBuilder<'b>
[src]

[src]

Returns a new swapchain builder.

[src]

Specifies the parameters of swapchain creation.

[src]

Specifies the surface that the swapchain will present images to.

[src]

Specifies the minimum number of presentable images that the application needs. The platform will either create the swapchain with at least that many images, or will fail to create the swapchain.

[src]

Specifies the format that is valid for swapchains on the specified surface.

[src]

Specifies the color space that is valid for swapchains on the specified surface.

[src]

Specifies the size (in pixels) of the swapchain. Behavior is platform-dependent when the image extent does not match the surface’s current extent as returned by vkGetPhysicalDeviceSurfaceCapabilitiesKHR.

[src]

Specifies the number of views in a multiview/stereo surface. For non-stereoscopic-3D applications, this value is 1.

[src]

Specifies the bitmask of ImageUsageFlagBits, indicating how the application will use the swapchain’s presentable images

[src]

Specifies the sharing mode used for the images of the swapchain.

[src]

Specifies the queue family indices having access to the images of the swapchain in case imageSharingMode is VK_SHARING_MODE_CONCURRENT.

[src]

Specifies the bitmask of VkSurfaceTransformFlagBitsKHR, describing the transform, relative to the presentation engine’s natural orientation, applied to the image content prior to presentation. If it does not match the currentTransform value returned by vkGetPhysicalDeviceSurfaceCapabilitiesKHR, the presentation engine will transform the image content as part of the presentation operation.

[src]

Specifies the bitmask of VkCompositeAlphaFlagBitsKHR indicating the alpha compositing mode to use when this surface is composited together with other surfaces on certain window systems.

[src]

Specifies the presentation mode the swapchain will use. A swapchain’s present mode determines how incoming present requests will be processed and queued internally.

[src]

Specifies the whether the Vulkan implementation is allowed to discard rendering operations that affect regions of the surface which are not visible.

  • If set to true, the presentable images associated with the swapchain may not own all of their pixels. Pixels in the presentable images that correspond to regions of the target surface obscured by another window on the desktop or subject to some other clipping mechanism will have undefined content when read back. Pixel shaders may not execute for these pixels, and thus any side affects they would have had will not occur.

  • If set to false, presentable images associated with the swapchain will own all the pixels they contain. Setting this value to VK_TRUE does not guarantee any clipping will occur, but allows more optimal presentation methods to be used on some platforms.

Note: Applications should set this value to VK_TRUE if they do not expect to read back the content of presentable images before presenting them or after reacquiring them and if their pixel shaders do not have any side effects that require them to run for all pixels in the presentable image.

[src]

If not VK_NULL_HANDLE, specifies the swapchain that will be replaced by the new swapchain being created. The new swapchain will be a descendant of oldSwapchain. Further, any descendants of the new swapchain will also be descendants of oldSwapchain. Upon calling vkCreateSwapchainKHR with a oldSwapchain that is not VK_NULL_HANDLE, any images not acquired by the application may be freed by the implementation, which may occur even if creation of the new swapchain fails. The application must destroy the old swapchain to free all memory associated with the old swapchain. The application must wait for the completion of any outstanding rendering to images it currently has acquired at the time the swapchain is destroyed. The application can continue to present any images it acquired and has not yet presented using the old swapchain, as long as it has not entered a state that causes it to return VK_ERROR_OUT_OF_DATE_KHR. However, the application cannot acquire any more images from the old swapchain regardless of whether or not creation of the new swapchain succeeds. The application can continue to use a shared presentable image obtained from oldSwapchain until a presentable image is acquired from the new swapchain, as long as it has not entered a state that causes it to return VK_ERROR_OUT_OF_DATE_KHR.

[src]

Builds and returns a new SwapchainKhr.

Trait Implementations

impl<'b> Debug for SwapchainKhrBuilder<'b>
[src]

[src]

Formats the value using the given formatter. Read more

impl<'b> Clone for SwapchainKhrBuilder<'b>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<'b> !Send for SwapchainKhrBuilder<'b>

impl<'b> !Sync for SwapchainKhrBuilder<'b>