Exemplo n.º 1
0
		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;
		}
Exemplo n.º 2
0
		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;
		}