From dadb19fbbf38d38ca1b9d65d1696e2ab8efdd35b Mon Sep 17 00:00:00 2001 From: Nicola Papale Date: Sat, 23 Sep 2023 11:58:18 +0200 Subject: [PATCH] Fix Dx12 naga codegen workaround --- crates/bevy_pbr/src/prepass/prepass.wgsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_pbr/src/prepass/prepass.wgsl b/crates/bevy_pbr/src/prepass/prepass.wgsl index 8b4161d0d218ef..1a76b18cc4e93a 100644 --- a/crates/bevy_pbr/src/prepass/prepass.wgsl +++ b/crates/bevy_pbr/src/prepass/prepass.wgsl @@ -98,7 +98,7 @@ fn vertex(vertex_no_morph: Vertex) -> VertexOutput { // Use vertex_no_morph.instance_index instead of vertex.instance_index to work around a wgpu dx12 bug. // See https://github.com/gfx-rs/naga/issues/2416 - let vertex_instance = vertex_no_morph.instance_index; + var vertex_instance = vertex_no_morph.instance_index; #ifdef MORPH_TARGETS var vertex = morph_vertex(vertex_no_morph);