コード例 #1
0
ファイル: VkBase.cs プロジェクト: cartman300/Vulkan.NET
		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;
		}
コード例 #2
0
ファイル: VkBase.cs プロジェクト: cartman300/Vulkan.NET
		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;
		}