Class VkDeviceQueueCreateInfo

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkDeviceQueueCreateInfo>
org.lwjgl.vulkan.VkDeviceQueueCreateInfo
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class VkDeviceQueueCreateInfo extends org.lwjgl.system.Struct<VkDeviceQueueCreateInfo> implements org.lwjgl.system.NativeResource
Structure specifying parameters of a newly created device queue.
Valid Usage
  • queueFamilyIndex must be less than pQueueFamilyPropertyCount returned by vkGetPhysicalDeviceQueueFamilyProperties
  • queueCount must be less than or equal to the queueCount member of the VkQueueFamilyProperties structure, as returned by vkGetPhysicalDeviceQueueFamilyProperties in the pQueueFamilyProperties[queueFamilyIndex]
  • Each element of pQueuePriorities must be between 0.0 and 1.0 inclusive
  • If the protectedMemory feature is not enabled, the DEVICE_QUEUE_CREATE_PROTECTED_BIT bit of flags must not be set
  • If flags includes DEVICE_QUEUE_CREATE_PROTECTED_BIT, queueFamilyIndex must be the index of a queue family that includes the QUEUE_PROTECTED_BIT capability
Valid Usage (Implicit)
  • sType must be STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO
  • pNext must be NULL or a pointer to a valid instance of VkDeviceQueueGlobalPriorityCreateInfoKHR
  • The sType value of each struct in the pNext chain must be unique
  • flags must be a valid combination of VkDeviceQueueCreateFlagBits values
  • pQueuePriorities must be a valid pointer to an array of queueCount float values
  • queueCount must be greater than 0
See Also

VkDeviceCreateInfo

Layout


 struct VkDeviceQueueCreateInfo {
     VkStructureType sType();
     void const * pNext();
     VkDeviceQueueCreateFlags flags();
     uint32_t queueFamilyIndex();
     uint32_t queueCount();
     float const * pQueuePriorities();
 }
  • 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.
    • QUEUECOUNT

      public static final int QUEUECOUNT
      The struct member offsets.
    • PQUEUEPRIORITIES

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

    • VkDeviceQueueCreateInfo

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