mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 15:14:50 +00:00
Explicitly make instance_index vertex output @interpolate(flat) (#9675)
The WGSL spec says that all scalar or vector integer vertex stage outputs and fragment stage inputs must be marked as @interpolate(flat). I think wgpu fixed this up for us, but being explicit is more correct.
This commit is contained in:
parent
4fdea02087
commit
ce1ac05c63
1 changed files with 1 additions and 1 deletions
|
@ -16,6 +16,6 @@ struct MeshVertexOutput {
|
||||||
@location(4) color: vec4<f32>,
|
@location(4) color: vec4<f32>,
|
||||||
#endif
|
#endif
|
||||||
#ifdef VERTEX_OUTPUT_INSTANCE_INDEX
|
#ifdef VERTEX_OUTPUT_INSTANCE_INDEX
|
||||||
@location(5) instance_index: u32,
|
@location(5) @interpolate(flat) instance_index: u32,
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue