1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-24 04:54:14 +01:00
dxvk/src/dxbc/dxbc_options.h
2018-05-24 11:49:12 +02:00

40 lines
1.0 KiB
C++

#pragma once
#include "../dxvk/dxvk_device.h"
namespace dxvk {
enum class DxbcOption : uint64_t {
/// Use the ShaderImageReadWithoutFormat capability.
/// Enabled by default on GPUs which support this.
UseStorageImageReadWithoutFormat,
/// Adds an extra component to the depth reference
/// vector for depth-compare operations. Workaround
/// for bugs in Nvidia drivers prior to 396.18.
AddExtraDrefCoordComponent,
/// Use FMin/FMax/FClamp instead of NMin/NMax/NClamp.
/// Workaround for bugs in older Nvidia drivers.
UseSimpleMinMaxClamp,
};
using DxbcOptions = Flags<DxbcOption>;
/**
* \brief Gets app-specific DXBC options
*
* \param [in] appName Application name
* \returns DXBC options for this application
*/
DxbcOptions getDxbcAppOptions(const std::string& appName);
/**
* \brief Gets device-specific options
*
* \param [in] device The device
* \returns Device options
*/
DxbcOptions getDxbcDeviceOptions(const Rc<DxvkDevice>& device);
}