Class VkDeviceQueueInfo2

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class VkDeviceQueueInfo2 extends Struct<VkDeviceQueueInfo2> implements NativeResource

 struct VkDeviceQueueInfo2 {
     VkStructureType sType;
     void const * pNext;
     VkDeviceQueueCreateFlags flags;
     uint32_t queueFamilyIndex;
     uint32_t queueIndex;
 }
  • 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.
    • FLAGS

      public static final int FLAGS
      The struct member offsets.
    • QUEUEFAMILYINDEX

      public static final int QUEUEFAMILYINDEX
      The struct member offsets.
    • QUEUEINDEX

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

    • VkDeviceQueueInfo2

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

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

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

      public int flags()
      Returns:
      the value of the flags field.
    • queueFamilyIndex

      public int queueFamilyIndex()
      Returns:
      the value of the queueFamilyIndex field.
    • queueIndex

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

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

      public VkDeviceQueueInfo2 sType$Default()
      Sets the STRUCTURE_TYPE_DEVICE_QUEUE_INFO_2 value to the sType field.
    • pNext

      public VkDeviceQueueInfo2 pNext(long value)
      Sets the specified value to the pNext field.
    • flags

      public VkDeviceQueueInfo2 flags(int value)
      Sets the specified value to the flags field.
    • queueFamilyIndex

      public VkDeviceQueueInfo2 queueFamilyIndex(int value)
      Sets the specified value to the queueFamilyIndex field.
    • queueIndex

      public VkDeviceQueueInfo2 queueIndex(int value)
      Sets the specified value to the queueIndex field.
    • set

      public VkDeviceQueueInfo2 set(int sType, long pNext, int flags, int queueFamilyIndex, int queueIndex)
      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 VkDeviceQueueInfo2 malloc()
      Returns a new VkDeviceQueueInfo2 instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static int nflags(long struct)
      Unsafe version of flags().
    • nqueueFamilyIndex

      public static int nqueueFamilyIndex(long struct)
      Unsafe version of queueFamilyIndex().
    • nqueueIndex

      public static int nqueueIndex(long struct)
      Unsafe version of queueIndex().
    • 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.
    • nflags

      public static void nflags(long struct, int value)
      Unsafe version of flags.
    • nqueueFamilyIndex

      public static void nqueueFamilyIndex(long struct, int value)
      Unsafe version of queueFamilyIndex.
    • nqueueIndex

      public static void nqueueIndex(long struct, int value)
      Unsafe version of queueIndex.