Class VkAcquireNextImageInfoKHR

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class VkAcquireNextImageInfoKHR extends Struct<VkAcquireNextImageInfoKHR> implements NativeResource

 struct VkAcquireNextImageInfoKHR {
     VkStructureType sType;
     void const * pNext;
     VkSwapchainKHR swapchain;
     uint64_t timeout;
     VkSemaphore semaphore;
     VkFence fence;
     uint32_t deviceMask;
 }
  • 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.
    • SWAPCHAIN

      public static final int SWAPCHAIN
      The struct member offsets.
    • TIMEOUT

      public static final int TIMEOUT
      The struct member offsets.
    • SEMAPHORE

      public static final int SEMAPHORE
      The struct member offsets.
    • FENCE

      public static final int FENCE
      The struct member offsets.
    • DEVICEMASK

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

    • VkAcquireNextImageInfoKHR

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

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<VkAcquireNextImageInfoKHR>
    • sType

      public int sType()
      Returns:
      the value of the sType field.
    • pNext

      public long pNext()
      Returns:
      the value of the pNext field.
    • swapchain

      public long swapchain()
      Returns:
      the value of the swapchain field.
    • timeout

      public long timeout()
      Returns:
      the value of the timeout field.
    • semaphore

      public long semaphore()
      Returns:
      the value of the semaphore field.
    • fence

      public long fence()
      Returns:
      the value of the fence field.
    • deviceMask

      public int deviceMask()
      Returns:
      the value of the deviceMask field.
    • sType

      public VkAcquireNextImageInfoKHR sType(int value)
      Sets the specified value to the sType field.
    • sType$Default

      public VkAcquireNextImageInfoKHR sType$Default()
      Sets the STRUCTURE_TYPE_ACQUIRE_NEXT_IMAGE_INFO_KHR value to the sType field.
    • pNext

      public VkAcquireNextImageInfoKHR pNext(long value)
      Sets the specified value to the pNext field.
    • swapchain

      public VkAcquireNextImageInfoKHR swapchain(long value)
      Sets the specified value to the swapchain field.
    • timeout

      public VkAcquireNextImageInfoKHR timeout(long value)
      Sets the specified value to the timeout field.
    • semaphore

      public VkAcquireNextImageInfoKHR semaphore(long value)
      Sets the specified value to the semaphore field.
    • fence

      public VkAcquireNextImageInfoKHR fence(long value)
      Sets the specified value to the fence field.
    • deviceMask

      public VkAcquireNextImageInfoKHR deviceMask(int value)
      Sets the specified value to the deviceMask field.
    • set

      public VkAcquireNextImageInfoKHR set(int sType, long pNext, long swapchain, long timeout, long semaphore, long fence, int deviceMask)
      Initializes this struct with the specified values.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

      public static VkAcquireNextImageInfoKHR malloc()
      Returns a new VkAcquireNextImageInfoKHR instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static VkAcquireNextImageInfoKHR calloc()
      Returns a new VkAcquireNextImageInfoKHR instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static VkAcquireNextImageInfoKHR create()
      Returns a new VkAcquireNextImageInfoKHR instance allocated with BufferUtils.
    • create

      public static VkAcquireNextImageInfoKHR create(long address)
      Returns a new VkAcquireNextImageInfoKHR instance for the specified memory address.
    • createSafe

      public static @Nullable VkAcquireNextImageInfoKHR createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static VkAcquireNextImageInfoKHR.Buffer malloc(int capacity)
      Returns a new VkAcquireNextImageInfoKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static VkAcquireNextImageInfoKHR.Buffer calloc(int capacity)
      Returns a new VkAcquireNextImageInfoKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static VkAcquireNextImageInfoKHR.Buffer create(int capacity)
      Returns a new VkAcquireNextImageInfoKHR.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static VkAcquireNextImageInfoKHR.Buffer create(long address, int capacity)
      Create a VkAcquireNextImageInfoKHR.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable VkAcquireNextImageInfoKHR.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static VkAcquireNextImageInfoKHR malloc(MemoryStack stack)
      Returns a new VkAcquireNextImageInfoKHR instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static VkAcquireNextImageInfoKHR calloc(MemoryStack stack)
      Returns a new VkAcquireNextImageInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static VkAcquireNextImageInfoKHR.Buffer malloc(int capacity, MemoryStack stack)
      Returns a new VkAcquireNextImageInfoKHR.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static VkAcquireNextImageInfoKHR.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new VkAcquireNextImageInfoKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • nsType

      public static int nsType(long struct)
      Unsafe version of sType().
    • npNext

      public static long npNext(long struct)
      Unsafe version of pNext().
    • nswapchain

      public static long nswapchain(long struct)
      Unsafe version of swapchain().
    • ntimeout

      public static long ntimeout(long struct)
      Unsafe version of timeout().
    • nsemaphore

      public static long nsemaphore(long struct)
      Unsafe version of semaphore().
    • nfence

      public static long nfence(long struct)
      Unsafe version of fence().
    • ndeviceMask

      public static int ndeviceMask(long struct)
      Unsafe version of deviceMask().
    • nsType

      public static void nsType(long struct, int value)
      Unsafe version of sType.
    • npNext

      public static void npNext(long struct, long value)
      Unsafe version of pNext.
    • nswapchain

      public static void nswapchain(long struct, long value)
      Unsafe version of swapchain.
    • ntimeout

      public static void ntimeout(long struct, long value)
      Unsafe version of timeout.
    • nsemaphore

      public static void nsemaphore(long struct, long value)
      Unsafe version of semaphore.
    • nfence

      public static void nfence(long struct, long value)
      Unsafe version of fence.
    • ndeviceMask

      public static void ndeviceMask(long struct, int value)
      Unsafe version of deviceMask.