Class VkDisplayPresentInfoKHR

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkDisplayPresentInfoKHR>
org.lwjgl.vulkan.VkDisplayPresentInfoKHR
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class VkDisplayPresentInfoKHR extends org.lwjgl.system.Struct<VkDisplayPresentInfoKHR> implements org.lwjgl.system.NativeResource
Structure describing parameters of a queue presentation to a swapchain.
Description

If the extent of the srcRect and dstRect are not equal, the presented pixels will be scaled accordingly.

Valid Usage
  • srcRect must specify a rectangular region that is a subset of the image being presented
  • dstRect must specify a rectangular region that is a subset of the visibleRegion parameter of the display mode the swapchain being presented uses
  • If the persistentContent member of the VkDisplayPropertiesKHR structure returned by vkGetPhysicalDeviceDisplayPropertiesKHR for the display the present operation targets is FALSE, then persistent must be FALSE
Valid Usage (Implicit)
See Also

VkRect2D

Layout


 struct VkDisplayPresentInfoKHR {
     VkStructureType sType();
     void const * pNext();
     VkRect2D srcRect();
     VkRect2D dstRect();
     VkBool32 persistent();
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • STYPE

      public static final int STYPE
      The struct member offsets.
    • PNEXT

      public static final int PNEXT
      The struct member offsets.
    • SRCRECT

      public static final int SRCRECT
      The struct member offsets.
    • DSTRECT

      public static final int DSTRECT
      The struct member offsets.
    • PERSISTENT

      public static final int PERSISTENT
      The struct member offsets.
  • Constructor Details

    • VkDisplayPresentInfoKHR

      public VkDisplayPresentInfoKHR(ByteBuffer container)
      Creates a VkDisplayPresentInfoKHR 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.

  • Method Details