wireframes: workaround for DX12 (#10022)

# Objective

- Fixes #10019

## Solution

- Uses a workaround for DX12
This commit is contained in:
François 2023-10-04 20:29:29 +02:00 committed by GitHub
parent f9e50e767b
commit 9086e60c20
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,7 +50,9 @@ fn vertex(vertex_no_morph: Vertex) -> VertexOutput {
#ifdef SKINNED
let model = bevy_pbr::skinning::skin_model(vertex.joint_indexes, vertex.joint_weights);
#else
let model = get_model_matrix(vertex.instance_index);
// 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 model = get_model_matrix(vertex_no_morph.instance_index);
#endif
var out: VertexOutput;