Class VkInstanceCreateInfo

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


    public class VkInstanceCreateInfo
    extends Struct
    Khronos Reference Page
    Vulkan Specification

    Contains information about how a VkInstance should be created.

    Valid Usage
    • sType must be STRUCTURE_TYPE_INSTANCE_CREATE_INFO
    • pNext must be NULL
    • flags must be 0
    • If pApplicationInfo is not NULL, pApplicationInfo must be a pointer to a valid VkApplicationInfo structure
    • If enabledLayerCount is not 0, ppEnabledLayerNames must be a pointer to an array of enabledLayerCount null-terminated strings
    • If enabledExtensionCount is not 0, ppEnabledExtensionNames must be a pointer to an array of enabledExtensionCount null-terminated strings
    • Any given element of ppEnabledLayerNames must be the name of a layer present on the system, exactly matching a string returned in the VkLayerProperties structure by EnumerateInstanceLayerProperties
    • Any given element of ppEnabledExtensionNames must be the name of an extension present on the system, exactly matching a string returned in the VkExtensionProperties structure by EnumerateInstanceExtensionProperties
    • If an extension listed in ppEnabledExtensionNames is provided as part of a layer, then both the layer and extension must be enabled to enable that extension

    Member documentation

    • sType – the type of this structure. Must be: STRUCTURE_TYPE_INSTANCE_CREATE_INFO
    • pNext – reserved for use by extensions
    • flags – reserved for future use
    • pApplicationInfo – a pointer to an instance of VkApplicationInfo
    • 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
    • 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;
        const void * pNext;
        VkInstanceCreateFlags flags;
        const VkApplicationInfo * pApplicationInfo;
        uint32_t enabledLayerCount;
        const char * const * ppEnabledLayerNames;
        uint32_t enabledExtensionCount;
        const char * const * ppEnabledExtensionNames;
    }