Class VkDeviceQueueCreateInfo

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

    public class VkDeviceQueueCreateInfo
    extends Struct
    implements 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
    Valid Usage (Implicit)
    See Also

    VkDeviceCreateInfo

    Member documentation

    • sType – the type of this structure.
    • pNextNULL or a pointer to an extension-specific structure.
    • flags – a bitmask indicating behavior of the queue.
    • queueFamilyIndex – an unsigned integer indicating the index of the queue family to create on this device. This index corresponds to the index of an element of the pQueueFamilyProperties array that was returned by vkGetPhysicalDeviceQueueFamilyProperties.
    • queueCount – an unsigned integer specifying the number of queues to create in the queue family indicated by queueFamilyIndex.
    • pQueuePriorities – an array of queueCount normalized floating point values, specifying priorities of work that will be submitted to each created queue. See Queue Priority for more information.

    Layout

    
     struct VkDeviceQueueCreateInfo {
         VkStructureType sType;
         void const * pNext;
         VkDeviceQueueCreateFlags flags;
         uint32_t queueFamilyIndex;
         uint32_t queueCount;
         float const * pQueuePriorities;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

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

        The struct member offsets.
    • Constructor Detail

      • VkDeviceQueueCreateInfo

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

      • sizeof

        public int sizeof()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • 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.
      • queueCount

        public int queueCount()
        Returns the value of the queueCount field.
      • pQueuePriorities

        public java.nio.FloatBuffer pQueuePriorities()
        Returns a FloatBuffer view of the data pointed to by the pQueuePriorities field.
      • queueFamilyIndex

        public VkDeviceQueueCreateInfo queueFamilyIndex​(int value)
        Sets the specified value to the queueFamilyIndex field.
      • pQueuePriorities

        public VkDeviceQueueCreateInfo pQueuePriorities​(java.nio.FloatBuffer value)
        Sets the address of the specified FloatBuffer to the pQueuePriorities field.
      • set

        public VkDeviceQueueCreateInfo set​(int sType,
                                           long pNext,
                                           int flags,
                                           int queueFamilyIndex,
                                           java.nio.FloatBuffer pQueuePriorities)
        Initializes this struct with the specified values.
      • malloc

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

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

        public static VkDeviceQueueCreateInfo create​(long address)
        Returns a new VkDeviceQueueCreateInfo instance for the specified memory address.
      • callocStack

        public static VkDeviceQueueCreateInfo callocStack()
        Returns a new VkDeviceQueueCreateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      • mallocStack

        public static VkDeviceQueueCreateInfo mallocStack​(MemoryStack stack)
        Returns a new VkDeviceQueueCreateInfo instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • callocStack

        public static VkDeviceQueueCreateInfo callocStack​(MemoryStack stack)
        Returns a new VkDeviceQueueCreateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        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().
      • nqueueCount

        public static int nqueueCount​(long struct)
        Unsafe version of queueCount().
      • npQueuePriorities

        public static java.nio.FloatBuffer npQueuePriorities​(long struct)
        Unsafe version of pQueuePriorities.
      • 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.
      • nqueueCount

        public static void nqueueCount​(long struct,
                                       int value)
        Sets the specified value to the queueCount field of the specified struct.
      • npQueuePriorities

        public static void npQueuePriorities​(long struct,
                                             java.nio.FloatBuffer value)
        Unsafe version of pQueuePriorities.
      • validate

        public static void validate​(long struct)
        Validates pointer members that should not be NULL.
        Parameters:
        struct - the struct to validate
      • validate

        public static void validate​(long array,
                                    int count)
        Calls validate(long) for each struct contained in the specified struct array.
        Parameters:
        array - the struct array to validate
        count - the number of structs in array