#include "dxbc_options.h" namespace dxvk { DxbcOptions::DxbcOptions(const Rc& device) { const VkPhysicalDeviceProperties deviceProps = device->adapter()->deviceProperties(); const DxvkGpuVendor vendor = static_cast(deviceProps.vendorID); if (vendor == DxvkGpuVendor::Nvidia) { // From vkd3d: NMin/NMax/NClamp crash the driver. this->useSimpleMinMaxClamp = true; } // Inform the user about which workarounds are enabled if (this->useSimpleMinMaxClamp) Logger::warn("DxbcOptions: Using FMin/FMax/FClamp instead of NMin/NMax/NClamp"); } }