2018-01-07 20:05:27 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "../dxvk/dxvk_device.h"
|
|
|
|
|
|
|
|
namespace dxvk {
|
2018-11-23 16:11:46 +01:00
|
|
|
|
|
|
|
struct D3D11Options;
|
2021-01-28 15:54:36 +01:00
|
|
|
|
|
|
|
enum class DxbcFloatControlFlag : uint32_t {
|
|
|
|
DenormFlushToZero32,
|
|
|
|
DenormPreserve64,
|
|
|
|
PreserveNan32,
|
|
|
|
PreserveNan64,
|
|
|
|
};
|
|
|
|
|
|
|
|
using DxbcFloatControlFlags = Flags<DxbcFloatControlFlag>;
|
|
|
|
|
2018-11-09 08:41:02 +01:00
|
|
|
struct DxbcOptions {
|
|
|
|
DxbcOptions();
|
2018-11-23 16:11:46 +01:00
|
|
|
DxbcOptions(const Rc<DxvkDevice>& device, const D3D11Options& options);
|
2018-11-09 08:41:02 +01:00
|
|
|
|
2019-02-19 14:27:21 +01:00
|
|
|
// Clamp oDepth in fragment shaders if the depth
|
|
|
|
// clip device feature is not supported
|
|
|
|
bool useDepthClipWorkaround = false;
|
|
|
|
|
2022-08-17 14:37:18 +02:00
|
|
|
/// Determines whether format qualifiers
|
|
|
|
/// on typed UAV loads are required
|
|
|
|
bool supportsTypedUavLoadR32 = false;
|
2018-11-07 11:57:36 +01:00
|
|
|
|
2019-05-15 18:49:02 +02:00
|
|
|
/// Use subgroup operations to reduce the number of
|
|
|
|
/// atomic operations for append/consume buffers.
|
|
|
|
bool useSubgroupOpsForAtomicCounters = false;
|
|
|
|
|
2018-11-23 15:57:54 +01:00
|
|
|
/// Clear thread-group shared memory to zero
|
|
|
|
bool zeroInitWorkgroupMemory = false;
|
2019-06-05 01:09:39 +02:00
|
|
|
|
2020-01-22 23:58:36 +01:00
|
|
|
/// Declare vertex positions as invariant
|
|
|
|
bool invariantPosition = false;
|
|
|
|
|
2020-02-07 22:47:06 +01:00
|
|
|
/// Insert memory barriers after TGSM stoes
|
2022-09-09 13:59:58 +02:00
|
|
|
bool forceVolatileTgsmAccess = false;
|
2020-02-07 22:47:06 +01:00
|
|
|
|
2021-07-02 04:36:50 +02:00
|
|
|
/// Replace ld_ms with ld
|
|
|
|
bool disableMsaa = false;
|
|
|
|
|
2023-01-08 00:51:13 +01:00
|
|
|
/// Force sample rate shading by using sample
|
|
|
|
/// interpolation for fragment shader inputs
|
|
|
|
bool forceSampleRateShading = false;
|
|
|
|
|
2022-09-17 22:38:28 +02:00
|
|
|
// Enable per-sample interlock if supported
|
|
|
|
bool enableSampleShadingInterlock = false;
|
|
|
|
|
2021-01-28 15:54:36 +01:00
|
|
|
/// Float control flags
|
|
|
|
DxbcFloatControlFlags floatControl;
|
|
|
|
|
2019-06-05 01:09:39 +02:00
|
|
|
/// Minimum storage buffer alignment
|
|
|
|
VkDeviceSize minSsboAlignment = 0;
|
2018-04-22 23:49:41 +02:00
|
|
|
};
|
|
|
|
|
2018-01-07 20:05:27 +01:00
|
|
|
}
|