Skip to content

Commit

Permalink
Try to fix WebGPU
Browse files Browse the repository at this point in the history
  • Loading branch information
pcwalton committed Dec 12, 2024
1 parent 00dfec3 commit a46a298
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_render/src/batching/gpu_preprocessing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit a46a298

Please sign in to comment.