Class VkInstanceCreateInfo

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

    public class VkInstanceCreateInfo
    extends Struct
    implements NativeResource
    Structure specifying parameters of a newly created instance.
    Valid Usage (Implicit)
    • sType must be STRUCTURE_TYPE_INSTANCE_CREATE_INFO
    • Each pNext member of any structure (including this one) in the pNext chain must be either NULL or a pointer to a valid instance of VkDebugReportCallbackCreateInfoEXT, VkDebugUtilsMessengerCreateInfoEXT, or VkValidationFlagsEXT
    • Each sType member in the pNext chain must be unique
    • flags must be 0
    • If pApplicationInfo is not NULL, pApplicationInfo must be a valid pointer to a valid VkApplicationInfo structure
    • If enabledLayerCount is not 0, ppEnabledLayerNames must be a valid pointer to an array of enabledLayerCount null-terminated UTF-8 strings
    • If enabledExtensionCount is not 0, ppEnabledExtensionNames must be a valid pointer to an array of enabledExtensionCount null-terminated UTF-8 strings
    See Also

    VkApplicationInfo, CreateInstance

    Member documentation

    • sType – the type of this structure.
    • pNextNULL or a pointer to an extension-specific structure.
    • flags – reserved for future use.
    • pApplicationInfoNULL or a pointer to an instance of VkApplicationInfo. If not NULL, this information helps implementations recognize behavior inherent to classes of applications. VkApplicationInfo is defined in detail below.
    • enabledLayerCount – the number of global layers to enable.
    • ppEnabledLayerNames – a pointer to an array of enabledLayerCount null-terminated UTF-8 strings containing the names of layers to enable for the created instance. See the Layers section for further details.
    • enabledExtensionCount – the number of global extensions to enable.
    • ppEnabledExtensionNames – a pointer to an array of enabledExtensionCount null-terminated UTF-8 strings containing the names of extensions to enable.

    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 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.