Class VkRectLayerKHR

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

    public class VkRectLayerKHR
    extends Struct
    implements NativeResource
    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. VkRectLayerKHR specifies pixels of the swapchain's image(s), which will be constant for the life of the swapchain.

    See Also

    VkExtent2D, VkOffset2D, VkPresentRegionKHR

    Member documentation

    • offset – the origin of the rectangle, in pixels.
    • extent – the size of the rectangle, in pixels.
    • layer – the layer of the image. For images with only one layer, the value of layer must be 0.

    Layout

    
     struct VkRectLayerKHR {
         VkOffset2D offset;
         VkExtent2D extent;
         uint32_t layer;
     }