namespace Brutal.VulkanApi { /// /// VkDeviceCreateInfo - Structure specifying parameters of a newly created device /// /// /// /// The VkDeviceCreateInfo structure is defined as: /// /// /// // Provided by VK_VERSION_1_0 /// typedef struct VkDeviceCreateInfo { /// VkStructureType sType; /// const void* pNext; /// VkDeviceCreateFlags flags; /// uint32_t queueCreateInfoCount; /// const VkDeviceQueueCreateInfo* pQueueCreateInfos; /// // enabledLayerCount is legacy and not used /// uint32_t enabledLayerCount; /// // ppEnabledLayerNames is legacy and not used /// const char* const* ppEnabledLayerNames; /// uint32_t enabledExtensionCount; /// const char* const* ppEnabledExtensionNames; /// const VkPhysicalDeviceFeatures* pEnabledFeatures; /// } VkDeviceCreateInfo; /// /// [StructLayout(LayoutKind.Explicit, Size = 72)] public unsafe partial struct VkDeviceCreateInfo() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.DeviceCreateInfo; /// /// Next is `NULL` or a pointer to a structure extending this structure. /// [FieldOffset(8)] public void* Next; /// /// Flags is reserved for future use. /// [FieldOffset(16)] public VkDeviceCreateFlags Flags; /// /// QueueCreateInfoCount is the unsigned integer size of the pQueueCreateInfos array. Refer to the Queue Creation^ section below for further details. /// [FieldOffset(20)] public int QueueCreateInfoCount; /// /// QueueCreateInfos is a pointer to an array of VkDeviceQueueCreateInfo structures describing the queues that are requested to be created along with the logical device. Refer to the Queue Creation^ section below for further details. /// [FieldOffset(24)] public VkDeviceQueueCreateInfo* QueueCreateInfos; /// /// EnabledLayerCount is legacy and not used. Implementations must not access this parameter. It must be 0. See here. /// [FieldOffset(32)] public int EnabledLayerCount; /// /// ppEnabledLayerNames is legacy and not used. Implementations must not access this parameter. It must be `NULL`. See here. /// [FieldOffset(40)] public byte** ppEnabledLayerNames; /// /// EnabledExtensionCount is the number of device extensions to enable. /// [FieldOffset(48)] public int EnabledExtensionCount; /// /// ppEnabledExtensionNames is a pointer to an array of enabledExtensionCount null-terminated UTF-8 strings containing the names of extensions to enable for the created device. See the here section for further details. /// [FieldOffset(56)] public byte** ppEnabledExtensionNames; /// /// EnabledFeatures is `NULL` or a pointer to a VkPhysicalDeviceFeatures structure containing boolean indicators of all the features to be enabled. Refer to the Features^ section for further details. /// [FieldOffset(64)] public VkPhysicalDeviceFeatures* EnabledFeatures; } }