#include #include "dxbc_options.h" namespace dxvk { const static std::unordered_map g_dxbcAppOptions = {{ }}; DxbcOptions getDxbcAppOptions(const std::string& appName) { auto appOptions = g_dxbcAppOptions.find(appName); return appOptions != g_dxbcAppOptions.end() ? appOptions->second : DxbcOptions(); } DxbcOptions getDxbcDeviceOptions(const Rc& device) { DxbcOptions flags; const DxvkDeviceFeatures& devFeatures = device->features(); if (devFeatures.core.features.shaderStorageImageReadWithoutFormat) flags.set(DxbcOption::UseStorageImageReadWithoutFormat); flags.set(DxbcOption::DeferKill); return flags; } }