Class VkInstanceCreateInfo

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

public class VkInstanceCreateInfo extends org.lwjgl.system.Struct<VkInstanceCreateInfo> implements org.lwjgl.system.NativeResource
Structure specifying parameters of a newly created instance.
Description

To capture events that occur while creating or destroying an instance, an application can link a VkDebugReportCallbackCreateInfoEXT structure or a VkDebugUtilsMessengerCreateInfoEXT structure to the pNext element of the VkInstanceCreateInfo structure given to vkCreateInstance. This callback is only valid for the duration of the CreateInstance and the DestroyInstance call. Use CreateDebugReportCallbackEXT or CreateDebugUtilsMessengerEXT to create persistent callback objects.

An application can add additional drivers by including the VkDirectDriverLoadingListLUNARG struct to the pNext element of the VkInstanceCreateInfo structure given to vkCreateInstance.

Note

VkDirectDriverLoadingListLUNARG allows applications to ship drivers with themselves. Only drivers that are designed to work with it should be used, such as drivers that implement Vulkan in software or that implement Vulkan by translating it to a different API. Any driver that requires installation should not be used, such as hardware drivers.

Valid Usage
Valid Usage (Implicit)
See Also

VkApplicationInfo, CreateInstance

Layout


 struct VkInstanceCreateInfo {
     VkStructureType sType();
     void const * pNext();
     VkInstanceCreateFlags flags();
     VkApplicationInfo const * pApplicationInfo();
     uint32_t enabledLayerCount();
     char const * const * ppEnabledLayerNames();
     uint32_t enabledExtensionCount();
     char const * const * ppEnabledExtensionNames();
 }
  • 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.
    • PAPPLICATIONINFO

      public static final int PAPPLICATIONINFO
      The struct member offsets.
    • ENABLEDLAYERCOUNT

      public static final int ENABLEDLAYERCOUNT
      The struct member offsets.
    • PPENABLEDLAYERNAMES

      public static final int PPENABLEDLAYERNAMES
      The struct member offsets.
    • ENABLEDEXTENSIONCOUNT

      public static final int ENABLEDEXTENSIONCOUNT
      The struct member offsets.
    • PPENABLEDEXTENSIONNAMES

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

    • VkInstanceCreateInfo

      public VkInstanceCreateInfo(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 Details