private static Device GetDevice(PhysicalDevice physicalDevice, QueueFamilyPropertiesExt queueFamily) { return(physicalDevice.CreateDevice(new DeviceCreateInfo { QueueCreateInfos = new[] { new DeviceQueueCreateInfo { QueueFamilyIndex = queueFamily.QueueIndex, QueuePriorities = new[] { 1f } }, }, EnabledExtensionNames = new[] { Extension.KhrSwapchain } })); }
public MyQueueFamilyProperties(QueueFamilyPropertiesExt queueFamilyPropertiesExt) { _queueFamilyPropertiesExt = queueFamilyPropertiesExt; }