From a46a298cf60be545dd9d31d9192658e1b1191018 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Wed, 11 Dec 2024 21:27:14 -0800 Subject: [PATCH] Try to fix WebGPU --- crates/bevy_render/src/batching/gpu_preprocessing.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_render/src/batching/gpu_preprocessing.rs b/crates/bevy_render/src/batching/gpu_preprocessing.rs index 7b4890325eb1a..07379443a4081 100644 --- a/crates/bevy_render/src/batching/gpu_preprocessing.rs +++ b/crates/bevy_render/src/batching/gpu_preprocessing.rs @@ -383,7 +383,7 @@ impl FromWorld for GpuPreprocessingSupport { GpuPreprocessingMode::None } else if !device .features() - .contains(Features::INDIRECT_FIRST_INSTANCE) || + .contains(Features::INDIRECT_FIRST_INSTANCE | Features::MULTI_DRAW_INDIRECT) || !adapter.get_downlevel_capabilities().flags.contains( DownlevelFlags::VERTEX_AND_INSTANCE_INDEX_RESPECTS_RESPECTIVE_FIRST_VALUE_IN_INDIRECT_DRAW) {