From 84b8e1c2b644ff7c480e84ce7d33baadb1753340 Mon Sep 17 00:00:00 2001 From: teoxoy <28601907+teoxoy@users.noreply.github.com> Date: Thu, 17 Aug 2023 16:59:43 +0200 Subject: [PATCH] cast to u32 --- wgpu-hal/src/dx12/adapter.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgpu-hal/src/dx12/adapter.rs b/wgpu-hal/src/dx12/adapter.rs index c5916b213a..18873b9d6c 100644 --- a/wgpu-hal/src/dx12/adapter.rs +++ b/wgpu-hal/src/dx12/adapter.rs @@ -257,7 +257,7 @@ impl super::Adapter { // write the results there, and issue a bunch of copy commands. //| wgt::Features::PIPELINE_STATISTICS_QUERY - if max_feature_level >= d3d12::FeatureLevel::L11_1 { + if max_feature_level as u32 >= d3d12::FeatureLevel::L11_1 as u32 { features |= wgt::Features::VERTEX_WRITABLE_STORAGE; }