Class VkDeviceCreateInfo

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, FLAGS, QUEUECREATEINFOCOUNT, PQUEUECREATEINFOS, ENABLEDLAYERCOUNT, PPENABLEDLAYERNAMES, ENABLEDEXTENSIONCOUNT, PPENABLEDEXTENSIONNAMES, PENABLEDFEATURES

        The struct member offsets.
    • Constructor Detail

      • VkDeviceCreateInfo

        public VkDeviceCreateInfo​(java.nio.ByteBuffer container)
        Creates a VkDeviceCreateInfo 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.
      • queueCreateInfoCount

        public int queueCreateInfoCount()
        Returns the value of the queueCreateInfoCount field.
      • enabledLayerCount

        public int enabledLayerCount()
        Returns the value of the enabledLayerCount field.
      • ppEnabledLayerNames

        @Nullable
        public PointerBuffer ppEnabledLayerNames()
        Returns a PointerBuffer view of the data pointed to by the ppEnabledLayerNames field.
      • enabledExtensionCount

        public int enabledExtensionCount()
        Returns the value of the enabledExtensionCount field.
      • ppEnabledExtensionNames

        @Nullable
        public PointerBuffer ppEnabledExtensionNames()
        Returns a PointerBuffer view of the data pointed to by the ppEnabledExtensionNames field.
      • sType

        public VkDeviceCreateInfo sType​(int value)
        Sets the specified value to the sType field.
      • pNext

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

        public VkDeviceCreateInfo flags​(int value)
        Sets the specified value to the flags field.
      • malloc

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

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

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

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

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

        public static VkDeviceCreateInfo mallocStack()
        Returns a new VkDeviceCreateInfo instance allocated on the thread-local MemoryStack.
      • callocStack

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

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

        public static VkDeviceCreateInfo callocStack​(MemoryStack stack)
        Returns a new VkDeviceCreateInfo 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().
      • nqueueCreateInfoCount

        public static int nqueueCreateInfoCount​(long struct)
        Unsafe version of queueCreateInfoCount().
      • nenabledLayerCount

        public static int nenabledLayerCount​(long struct)
        Unsafe version of enabledLayerCount().
      • nenabledExtensionCount

        public static int nenabledExtensionCount​(long struct)
        Unsafe version of enabledExtensionCount().
      • 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.
      • nqueueCreateInfoCount

        public static void nqueueCreateInfoCount​(long struct,
                                                 int value)
        Sets the specified value to the queueCreateInfoCount field of the specified struct.
      • nenabledLayerCount

        public static void nenabledLayerCount​(long struct,
                                              int value)
        Sets the specified value to the enabledLayerCount field of the specified struct.
      • nenabledExtensionCount

        public static void nenabledExtensionCount​(long struct,
                                                  int value)
        Sets the specified value to the enabledExtensionCount field of the specified struct.
      • 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