Skip to content

Commit 40d0b86

Browse files
dsgallupstychedelia
andcommitted
chore: documentation, inline call
- Pared down the comments of internal functions - removed inline macro Co-authored-by: charlotte <[email protected]>
1 parent 37b5339 commit 40d0b86

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

crates/bevy_pbr/src/render/mesh.rs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -838,10 +838,7 @@ pub struct MeshesToReextractNextFrame(MainEntityHashSet);
838838

839839
impl RenderMeshInstanceShared {
840840
/// 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`].
845842
fn for_gpu_building(
846843
previous_transform: Option<&PreviousGlobalTransform>,
847844
mesh: &Mesh3d,
@@ -859,14 +856,7 @@ impl RenderMeshInstanceShared {
859856
)
860857
}
861858

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`].
870860
fn for_cpu_building(
871861
previous_transform: Option<&PreviousGlobalTransform>,
872862
mesh: &Mesh3d,

0 commit comments

Comments
 (0)