Skip to content

Commit

Permalink
Fix Dx12 naga codegen workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
nicopap committed Sep 23, 2023
1 parent ba6ec25 commit dadb19f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_pbr/src/prepass/prepass.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit dadb19f

Please sign in to comment.