summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/gfx/d3d11/d3d11-device.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/gfx/d3d11/d3d11-device.cpp b/tools/gfx/d3d11/d3d11-device.cpp
index ab4670a17..b101c6d13 100644
--- a/tools/gfx/d3d11/d3d11-device.cpp
+++ b/tools/gfx/d3d11/d3d11-device.cpp
@@ -267,6 +267,19 @@ SlangResult DeviceImpl::initialize(const Desc& desc)
#endif
}
+ // Check double precision support
+ {
+ D3D11_FEATURE_DATA_DOUBLES doublePrecisionFeature = {};
+ if (SUCCEEDED(m_device->CheckFeatureSupport(
+ D3D11_FEATURE_DOUBLES,
+ &doublePrecisionFeature,
+ sizeof(doublePrecisionFeature))) &&
+ doublePrecisionFeature.DoublePrecisionFloatShaderOps)
+ {
+ m_features.add("double");
+ }
+ }
+
{
// Create a TIMESTAMP_DISJOINT query object to query/update frequency info.
D3D11_QUERY_DESC disjointQueryDesc = {};