Class VkInstanceCreateInfo

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, FLAGS, PAPPLICATIONINFO, ENABLEDLAYERCOUNT, PPENABLEDLAYERNAMES, ENABLEDEXTENSIONCOUNT, PPENABLEDEXTENSIONNAMES

        The struct member offsets.
    • Constructor Detail

      • VkInstanceCreateInfo

        public VkInstanceCreateInfo​(java.nio.ByteBuffer container)
        Creates a VkInstanceCreateInfo 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()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • sType

        public int sType()
        the type of this structure.
      • pNext

        public long pNext()
        NULL or a pointer to a structure extending this structure.
      • flags

        public int flags()
        reserved for future use.
      • pApplicationInfo

        @Nullable
        public VkApplicationInfo pApplicationInfo()
        NULL or a pointer to a VkApplicationInfo structure. If not NULL, this information helps implementations recognize behavior inherent to classes of applications. VkApplicationInfo is defined in detail below.
      • enabledLayerCount

        public int enabledLayerCount()
        the number of global layers to enable.
      • ppEnabledLayerNames

        @Nullable
        public org.lwjgl.PointerBuffer ppEnabledLayerNames()
        a pointer to an array of enabledLayerCount null-terminated UTF-8 strings containing the names of layers to enable for the created instance. The layers are loaded in the order they are listed in this array, with the first array element being the closest to the application, and the last array element being the closest to the driver. See the Layers section for further details.
      • enabledExtensionCount

        public int enabledExtensionCount()
        the number of global extensions to enable.
      • ppEnabledExtensionNames

        @Nullable
        public org.lwjgl.PointerBuffer ppEnabledExtensionNames()
        a pointer to an array of enabledExtensionCount null-terminated UTF-8 strings containing the names of extensions to enable.
      • set

        public VkInstanceCreateInfo set​(int sType,
                                        long pNext,
                                        int flags,
                                        @Nullable
                                        VkApplicationInfo pApplicationInfo,
                                        @Nullable
                                        org.lwjgl.PointerBuffer ppEnabledLayerNames,
                                        @Nullable
                                        org.lwjgl.PointerBuffer ppEnabledExtensionNames)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

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

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

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

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

        public static VkInstanceCreateInfo.Buffer calloc​(int capacity,
                                                         org.lwjgl.system.MemoryStack stack)
        Returns a new VkInstanceCreateInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • 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().
      • nenabledLayerCount

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

        @Nullable
        public static org.lwjgl.PointerBuffer nppEnabledLayerNames​(long struct)
        Unsafe version of ppEnabledLayerNames.
      • nenabledExtensionCount

        public static int nenabledExtensionCount​(long struct)
        Unsafe version of enabledExtensionCount().
      • nppEnabledExtensionNames

        @Nullable
        public static org.lwjgl.PointerBuffer nppEnabledExtensionNames​(long struct)
        Unsafe version of ppEnabledExtensionNames.
      • 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.
      • nenabledLayerCount

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

        public static void nppEnabledLayerNames​(long struct,
                                                @Nullable
                                                org.lwjgl.PointerBuffer value)
        Unsafe version of ppEnabledLayerNames.
      • nenabledExtensionCount

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

        public static void nppEnabledExtensionNames​(long struct,
                                                    @Nullable
                                                    org.lwjgl.PointerBuffer value)
        Unsafe version of ppEnabledExtensionNames.
      • validate

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