mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
fix shader_instancing (#7305)
# Objective - The changes to the MeshPipeline done for the prepass broke the shader_instancing example. The issue is that the view_layout changes based on if MSAA is enabled or not, but the example hardcoded the view_layout. ## Solution - Don't overwrite the bind_group_layout of the descriptor since the MeshPipeline already takes care of this in the specialize function. Closes https://github.com/bevyengine/bevy/issues/7285
This commit is contained in:
parent
eda3ffb0af
commit
1be3b6d592
1 changed files with 0 additions and 5 deletions
|
@ -205,11 +205,6 @@ impl SpecializedMeshPipeline for CustomPipeline {
|
|||
],
|
||||
});
|
||||
descriptor.fragment.as_mut().unwrap().shader = self.shader.clone();
|
||||
descriptor.layout = Some(vec![
|
||||
self.mesh_pipeline.view_layout.clone(),
|
||||
self.mesh_pipeline.mesh_layout.clone(),
|
||||
]);
|
||||
|
||||
Ok(descriptor)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue