예제 #1
0
        internal VkPhysicalDevice GetPhysicalDevice(bool enableValidation)
        {
            if (enableValidation)
            {
                if (debugPhysicalDevice == VkPhysicalDevice.Null)
                {
                    debugPhysicalDevice = vkEnumeratePhysicalDevices(GraphicsAdapterFactory.GetInstance(true).NativeInstance).ToArray()[adapterOrdinal];
                }

                return(debugPhysicalDevice);
            }
            else
            {
                return(defaultPhysicalDevice);
            }
        }
예제 #2
0
        internal PhysicalDevice GetPhysicalDevice(bool enableValidation)
        {
            if (enableValidation)
            {
                if (debugPhysicalDevice == PhysicalDevice.Null)
                {
                    debugPhysicalDevice = GraphicsAdapterFactory.GetInstance(true).NativeInstance.PhysicalDevices[adapterOrdinal];
                }

                return(debugPhysicalDevice);
            }
            else
            {
                return(defaultPhysicalDevice);
            }
        }