Class VkSwapchainPresentFenceInfoEXT

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

public class VkSwapchainPresentFenceInfoEXT extends org.lwjgl.system.Struct<VkSwapchainPresentFenceInfoEXT> implements org.lwjgl.system.NativeResource
Fences associated with a vkQueuePresentKHR operation.
Description

The set of queue operations defined by queuing an image for presentation, as well as operations performed by the presentation engine access the payloads of objects associated with the presentation operation. The associated objects include:

  • The swapchain image, its implicitly bound memory, and any other resources bound to that memory.
  • The wait semaphores specified when queuing the image for presentation.

The application can provide a fence that the implementation will signal when all such queue operations have completed and the presentation engine has taken a reference to the payload of any objects it accesses as part of the present operation. For all binary wait semaphores imported by the presentation engine using the equivalent of reference transference, as described in Importing Semaphore Payloads, this fence must not signal until all such semaphore payloads have been reset by the presentation engine.

The application can destroy the wait semaphores associated with a given presentation operation when at least one of the associated fences is signaled, and can destroy the swapchain when the fences associated with all past presentation requests referring to that swapchain have signaled.

Fences associated with presentations to the same swapchain on the same VkQueue must be signaled in the same order as the present operations.

To specify a fence for each swapchain in a present operation, include the VkSwapchainPresentFenceInfoEXT structure in the pNext chain of the VkPresentInfoKHR structure.

Valid Usage
  • swapchainCount must be equal to VkPresentInfoKHR::swapchainCount
  • Each element of pFences that is not NULL_HANDLE must be unsignaled
  • Each element of pFences that is not NULL_HANDLE must not be associated with any other queue command that has not yet completed execution on that queue
Valid Usage (Implicit)

Layout


 struct VkSwapchainPresentFenceInfoEXT {
     VkStructureType sType();
     void const * pNext();
     uint32_t swapchainCount();
     VkFence const * pFences();
 }
  • 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.
    • SWAPCHAINCOUNT

      public static final int SWAPCHAINCOUNT
      The struct member offsets.
    • PFENCES

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

    • VkSwapchainPresentFenceInfoEXT

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