Class VkBindImageMemorySwapchainInfoKHR

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

    public class VkBindImageMemorySwapchainInfoKHR
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Structure specifying swapchain image memory to bind to.
    Description

    If swapchain is not NULL, the swapchain and imageIndex are used to determine the memory that the image is bound to, instead of memory and memoryOffset.

    Memory can be bound to a swapchain and use the pDeviceIndices or pSplitInstanceBindRegions members of VkBindImageMemoryDeviceGroupInfo.

    Valid Usage
    • imageIndex must be less than the number of images in swapchain
    Valid Usage (Implicit)
    Host Synchronization
    • Host access to swapchain must be externally synchronized

    Member documentation

    • sType – the type of this structure.
    • pNextNULL or a pointer to an extension-specific structure.
    • swapchainNULL_HANDLE or a swapchain handle.
    • imageIndex – an image index within swapchain.

    Layout

    
     struct VkBindImageMemorySwapchainInfoKHR {
         VkStructureType sType;
         void const * pNext;
         VkSwapchainKHR swapchain;
         uint32_t imageIndex;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, SWAPCHAIN, IMAGEINDEX

        The struct member offsets.
    • Constructor Detail

      • VkBindImageMemorySwapchainInfoKHR

        public VkBindImageMemorySwapchainInfoKHR​(java.nio.ByteBuffer container)
        Creates a VkBindImageMemorySwapchainInfoKHR 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.