Class VkDeviceQueueInfo2

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

    public class VkDeviceQueueInfo2
    extends Struct
    implements NativeResource
    Structure specifying the parameters used for device queue creation.
    Description

    The queue returned by GetDeviceQueue2 must have the same flags value from this structure as that used at device creation time in a VkDeviceQueueCreateInfo instance. If no matching flags were specified at device creation time then pQueue will return NULL_HANDLE.

    Valid Usage
    • queueFamilyIndex must be one of the queue family indices specified when device was created, via the VkDeviceQueueCreateInfo structure
    • queueIndex must be less than the number of queues created for the specified queue family index and VkDeviceQueueCreateFlags member flags equal to this flags value when device was created, via the queueCount member of the VkDeviceQueueCreateInfo structure
    Valid Usage (Implicit)
    See Also

    GetDeviceQueue2

    Member documentation

    • sType – the type of this structure.
    • pNextNULL or a pointer to an extension-specific structure. The pNext chain of VkDeviceQueueInfo2 is used to provide additional image parameters to GetDeviceQueue2.
    • flags – a VkDeviceQueueCreateFlags value indicating the flags used to create the device queue.
    • queueFamilyIndex – the index of the queue family to which the queue belongs.
    • queueIndex – the index within this queue family of the queue to retrieve.

    Layout

    
     struct VkDeviceQueueInfo2 {
         VkStructureType sType;
         void const * pNext;
         VkDeviceQueueCreateFlags flags;
         uint32_t queueFamilyIndex;
         uint32_t queueIndex;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, FLAGS, QUEUEFAMILYINDEX, QUEUEINDEX

        The struct member offsets.
    • Constructor Detail

      • VkDeviceQueueInfo2

        public VkDeviceQueueInfo2​(java.nio.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.