File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed
crates/bevy_pbr/src/render Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -838,10 +838,7 @@ pub struct MeshesToReextractNextFrame(MainEntityHashSet);
838
838
839
839
impl RenderMeshInstanceShared {
840
840
/// A gpu builder will provide the mesh instance id
841
- /// during `RenderMeshGpuBuilder::update`.
842
- ///
843
- /// Therefore, this does not need to be queried.
844
- #[ inline]
841
+ /// during [`RenderMeshInstanceGpuBuilder::update`].
845
842
fn for_gpu_building (
846
843
previous_transform : Option < & PreviousGlobalTransform > ,
847
844
mesh : & Mesh3d ,
@@ -859,14 +856,7 @@ impl RenderMeshInstanceShared {
859
856
)
860
857
}
861
858
862
- /// Build a struct with common properties between gpu and cpu builders for cpu builders.
863
- ///
864
- /// Unlike the gpu builder, the cpu builder does not have an equivalent
865
- /// [`RenderMeshGpuBuilder::update`]. Therefore, we need to have
866
- /// the [`MaterialBindingId`] ahead of time.
867
- ///
868
- /// Otherwise, a mesh with a handle to a base color texture will all appear identical
869
- /// based on the most recently inserted mesh.
859
+ /// The cpu builder does not have an equivalent [`RenderMeshInstanceGpuBuilder::update`].
870
860
fn for_cpu_building (
871
861
previous_transform : Option < & PreviousGlobalTransform > ,
872
862
mesh : & Mesh3d ,
You can’t perform that action at this time.
0 commit comments