Class VkPresentRegionKHR

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer

    public class VkPresentRegionKHR
    extends Struct
    implements NativeResource
    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 VkRectLayerKHR structures
    See Also

    VkPresentRegionsKHR, VkRectLayerKHR

    Member documentation

    • rectangleCount – the number of rectangles in pRectangles, or zero if the entire image has changed and should be presented.
    • pRectangles – either NULL or a pointer to an array of VkRectLayerKHR structures. The VkRectLayerKHR 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.

    Layout

    
     struct VkPresentRegionKHR {
         uint32_t rectangleCount;
         VkRectLayerKHR const * pRectangles;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • RECTANGLECOUNT, PRECTANGLES

        The struct member offsets.
    • Constructor Detail

      • VkPresentRegionKHR

        public VkPresentRegionKHR​(java.nio.ByteBuffer container)
        Creates a VkPresentRegionKHR instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

        The created instance holds a strong reference to the container object.