summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorskallweitNV <64953474+skallweitNV@users.noreply.github.com>2022-09-29 18:58:04 +0200
committerGitHub <noreply@github.com>2022-09-29 09:58:04 -0700
commit8e0750fb193a8d2b9e8c3a0d81e367d6a9bdeb30 (patch)
treeef8901f80ae09a6f48af6afc03a6afc506c67464 /tools
parent70a6fbb33136e8e25a21977b4b07d3ced7597354 (diff)
Add "wave-ops" feature to D3D12 device (#2423)
Diffstat (limited to 'tools')
-rw-r--r--tools/gfx/d3d12/d3d12-device.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/gfx/d3d12/d3d12-device.cpp b/tools/gfx/d3d12/d3d12-device.cpp
index e682764f5..fc9ab43cb 100644
--- a/tools/gfx/d3d12/d3d12-device.cpp
+++ b/tools/gfx/d3d12/d3d12-device.cpp
@@ -624,6 +624,16 @@ Result DeviceImpl::initialize(const Desc& desc)
}
}
{
+ D3D12_FEATURE_DATA_D3D12_OPTIONS1 options;
+ if (SLANG_SUCCEEDED(m_device->CheckFeatureSupport(
+ D3D12_FEATURE_D3D12_OPTIONS1, &options, sizeof(options))))
+ {
+ // Check wave operations support
+ if (options.WaveOps)
+ m_features.add("wave-ops");
+ }
+ }
+ {
D3D12_FEATURE_DATA_D3D12_OPTIONS2 options;
if (SLANG_SUCCEEDED(m_device->CheckFeatureSupport(
D3D12_FEATURE_D3D12_OPTIONS2, &options, sizeof(options))))