From 0d233b44c5f268e870dcbe757f8b6b821ea8b7f5 Mon Sep 17 00:00:00 2001 From: Teodor Tanasoaia <28601907+teoxoy@users.noreply.github.com> Date: Fri, 11 Aug 2023 22:33:55 +0200 Subject: [PATCH] DX11 set some more feature flags (#4034) --- wgpu-hal/src/dx11/adapter.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wgpu-hal/src/dx11/adapter.rs b/wgpu-hal/src/dx11/adapter.rs index a28106a9bb..34ce34238d 100644 --- a/wgpu-hal/src/dx11/adapter.rs +++ b/wgpu-hal/src/dx11/adapter.rs @@ -94,7 +94,8 @@ impl super::Adapter { | wgt::Features::POLYGON_MODE_LINE | wgt::Features::CLEAR_TEXTURE | wgt::Features::TEXTURE_FORMAT_16BIT_NORM - | wgt::Features::ADDRESS_MODE_CLAMP_TO_ZERO; + | wgt::Features::ADDRESS_MODE_CLAMP_TO_ZERO + | wgt::Features::ADDRESS_MODE_CLAMP_TO_BORDER; let mut downlevel = wgt::DownlevelFlags::BASE_VERTEX | wgt::DownlevelFlags::READ_ONLY_DEPTH_STENCIL | wgt::DownlevelFlags::UNRESTRICTED_INDEX_BUFFER @@ -132,6 +133,8 @@ impl super::Adapter { features |= wgt::Features::TIMESTAMP_QUERY; features |= wgt::Features::PIPELINE_STATISTICS_QUERY; features |= wgt::Features::SHADER_PRIMITIVE_INDEX; + features |= wgt::Features::DEPTH32FLOAT_STENCIL8; + features |= wgt::Features::RG11B10UFLOAT_RENDERABLE; } if feature_level >= FL10_1 {