vulkan-3.1.0.0: Bindings to the Vulkan graphics API.

Safe HaskellNone
LanguageHaskell2010

Graphics.Vulkan.Extensions.VK_KHR_incremental_present

Synopsis

Documentation

data PresentRegionsKHR Source #

VkPresentRegionsKHR - Structure hint of rectangular regions changed by vkQueuePresentKHR

Valid Usage

Valid Usage (Implicit)

  • If pRegions is not NULL, pRegions must be a valid pointer to an array of swapchainCount valid PresentRegionKHR structures
  • swapchainCount must be greater than 0

See Also

PresentRegionKHR, StructureType

Constructors

PresentRegionsKHR 

Fields

data PresentRegionKHR Source #

VkPresentRegionKHR - Structure containing rectangular region changed by vkQueuePresentKHR for a given VkImage

Valid Usage (Implicit)

  • If rectangleCount is not 0, and pRectangles is not NULL, pRectangles must be a valid pointer to an array of rectangleCount valid RectLayerKHR structures

See Also

PresentRegionsKHR, RectLayerKHR

Constructors

PresentRegionKHR 

Fields

  • rectangles :: Either Word32 (Vector RectLayerKHR)

    pRectangles is either NULL or a pointer to an array of RectLayerKHR structures. The RectLayerKHR structure is the framebuffer coordinates, plus layer, of a portion of a presentable image that has changed and must be presented. If non-NULL, each entry in pRectangles is a rectangle of the given image that has changed since the last image was presented to the given swapchain.

data RectLayerKHR Source #

VkRectLayerKHR - Structure containing a rectangle, including layer, changed by vkQueuePresentKHR for a given VkImage

Valid Usage

Some platforms allow the size of a surface to change, and then scale the pixels of the image to fit the surface. RectLayerKHR specifies pixels of the swapchain’s image(s), which will be constant for the life of the swapchain.

See Also

Extent2D, Offset2D, PresentRegionKHR

Constructors

RectLayerKHR 

Fields

  • offset :: Offset2D

    offset is the origin of the rectangle, in pixels.

  • extent :: Extent2D

    extent is the size of the rectangle, in pixels.

  • layer :: Word32

    layer is the layer of the image. For images with only one layer, the value of layer must be 0.

type KHR_INCREMENTAL_PRESENT_EXTENSION_NAME = "VK_KHR_incremental_present" Source #

pattern KHR_INCREMENTAL_PRESENT_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a Source #