public static VkQueueFamilyProperties[] GetQueueFamilyProperties(IntPtr GPU) { uint Count; Vulkan.vkGetPhysicalDeviceQueueFamilyProperties(GPU, &Count, null); VkQueueFamilyProperties[] Props = new VkQueueFamilyProperties[Count]; fixed (VkQueueFamilyProperties* PropsPtr = Props) Vulkan.vkGetPhysicalDeviceQueueFamilyProperties(GPU, &Count, PropsPtr); return Props; }
public static uint[] QueueSupportGraphics(VkQueueFamilyProperties[] Props) { uint[] Ret = new uint[Props.Length]; for (int i = 0; i < Props.Length; i++) { if ((Props[i].queueFlags & (uint)VkQueueFlagBits.VK_QUEUE_GRAPHICS_BIT) != 0) Ret[i] = Vulkan.VK_TRUE; else Ret[i] = Vulkan.VK_FALSE; } return Ret; }