diff options
Diffstat (limited to 'tools/gfx/d3d12/d3d12-device.cpp')
| -rw-r--r-- | tools/gfx/d3d12/d3d12-device.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/gfx/d3d12/d3d12-device.cpp b/tools/gfx/d3d12/d3d12-device.cpp index 3f62c2d5c..ca624b99f 100644 --- a/tools/gfx/d3d12/d3d12-device.cpp +++ b/tools/gfx/d3d12/d3d12-device.cpp @@ -783,6 +783,18 @@ Result DeviceImpl::initialize(const Desc& desc) } } } + // Check mesh shader support + { + D3D12_FEATURE_DATA_D3D12_OPTIONS7 options; + if (SLANG_SUCCEEDED(m_device->CheckFeatureSupport( + D3D12_FEATURE_D3D12_OPTIONS7, &options, sizeof(options)))) + { + if (options.MeshShaderTier >= D3D12_MESH_SHADER_TIER_1) + { + m_features.add("mesh-shader"); + } + } + } } m_desc = desc; |
