Skip to content

Commit a0c42ce

Browse files
committed
Add missing docs
1 parent ff949a9 commit a0c42ce

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/bevy_render/src/mesh/shape/sphere.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@ use wgpu::PrimitiveTopology;
1010
/// An error when creating an icosphere [`Mesh`] from a [`SphereMesh`].
1111
#[derive(Clone, Copy, Debug, Error)]
1212
pub enum IcosphereError {
13+
/// The icosphere has too many vertices.
1314
#[error("Cannot create an icosphere of {subdivisions} subdivisions due to there being too many vertices being generated: {number_of_resulting_points}. (Limited to 65535 vertices or 79 subdivisions)")]
1415
TooManyVertices {
16+
/// The number of subdivisions used. 79 is the largest allowed value for a mesh to be generated.
1517
subdivisions: usize,
18+
/// The number of vertices generated. 65535 is the largest allowed value for a mesh to be generated.
1619
number_of_resulting_points: usize,
1720
},
1821
}

0 commit comments

Comments
 (0)