Class VkPresentId2KHR.Buffer

All Implemented Interfaces:
AutoCloseable, Iterable<VkPresentId2KHR>, NativeResource, Pointer
Enclosing class:
VkPresentId2KHR

public static class VkPresentId2KHR.Buffer extends StructBuffer<VkPresentId2KHR,VkPresentId2KHR.Buffer> implements NativeResource
An array of VkPresentId2KHR structs.
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new VkPresentId2KHR.Buffer instance backed by the specified container.

      Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by VkPresentId2KHR.SIZEOF, and its mark will be undefined.

      The created buffer instance holds a strong reference to the container object.

    • Buffer

      public Buffer(long address, int cap)
  • Method Details

    • 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.Buffer sType(int value)
      Sets the specified value to the sType field.
    • sType$Default

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

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

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

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