internal VkPhysicalDevice GetPhysicalDevice(bool enableValidation) { if (enableValidation) { if (debugPhysicalDevice == VkPhysicalDevice.Null) { debugPhysicalDevice = vkEnumeratePhysicalDevices(GraphicsAdapterFactory.GetInstance(true).NativeInstance).ToArray()[adapterOrdinal]; } return(debugPhysicalDevice); } else { return(defaultPhysicalDevice); } }
internal PhysicalDevice GetPhysicalDevice(bool enableValidation) { if (enableValidation) { if (debugPhysicalDevice == PhysicalDevice.Null) { debugPhysicalDevice = GraphicsAdapterFactory.GetInstance(true).NativeInstance.PhysicalDevices[adapterOrdinal]; } return(debugPhysicalDevice); } else { return(defaultPhysicalDevice); } }