Class VkPresentId2KHR

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class VkPresentId2KHR extends Struct<VkPresentId2KHR> implements NativeResource

 struct VkPresentId2KHR {
     VkStructureType sType;
     void const * pNext;
     uint32_t swapchainCount;
     uint64_t const * pPresentIds;
 }
  • 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.
    • PPRESENTIDS

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

    • VkPresentId2KHR

      public VkPresentId2KHR(ByteBuffer container)
      Creates a VkPresentId2KHR 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<VkPresentId2KHR>
    • sType

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

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

      public int swapchainCount()
      Returns:
      the value of the swapchainCount field.
    • pPresentIds

      public @Nullable LongBuffer pPresentIds()
      Returns:
      a LongBuffer view of the data pointed to by the pPresentIds field.
    • sType

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

      public VkPresentId2KHR sType$Default()
      Sets the STRUCTURE_TYPE_PRESENT_ID_2_KHR value to the sType field.
    • pNext

      public VkPresentId2KHR pNext(long value)
      Sets the specified value to the pNext field.
    • swapchainCount

      public VkPresentId2KHR swapchainCount(int value)
      Sets the specified value to the swapchainCount field.
    • pPresentIds

      public VkPresentId2KHR pPresentIds(@Nullable LongBuffer value)
      Sets the address of the specified LongBuffer to the pPresentIds field.
    • set

      public VkPresentId2KHR set(int sType, long pNext, int swapchainCount, @Nullable LongBuffer pPresentIds)
      Initializes this struct with the specified values.
    • set

      public VkPresentId2KHR set(VkPresentId2KHR src)
      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static VkPresentId2KHR.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new VkPresentId2KHR.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().
    • nswapchainCount

      public static int nswapchainCount(long struct)
      Unsafe version of swapchainCount().
    • npPresentIds

      public static @Nullable LongBuffer npPresentIds(long struct)
      Unsafe version of pPresentIds.
    • 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.
    • nswapchainCount

      public static void nswapchainCount(long struct, int value)
      Sets the specified value to the swapchainCount field of the specified struct.
    • npPresentIds

      public static void npPresentIds(long struct, @Nullable LongBuffer value)
      Unsafe version of pPresentIds.