Fix outdated doc in bevy_render (#8578)
# Objective Fix an out-of-date doc string. The old doc string says "returns None if …" and "for a given descriptor", but this method neither takes an argument or returns an `Option`.
This commit is contained in:
parent
a47f1ab4be
commit
dce472222f
@ -214,9 +214,9 @@ impl Mesh {
|
||||
})
|
||||
}
|
||||
|
||||
/// For a given `descriptor` returns a [`VertexBufferLayout`] compatible with this mesh. If this
|
||||
/// mesh is not compatible with the given `descriptor` (ex: it is missing vertex attributes), [`None`] will
|
||||
/// be returned.
|
||||
/// Get this `Mesh`'s [`MeshVertexBufferLayout`], used in [`SpecializedMeshPipeline`].
|
||||
///
|
||||
/// [`SpecializedMeshPipeline`]: crate::render_resource::SpecializedMeshPipeline
|
||||
pub fn get_mesh_vertex_buffer_layout(&self) -> MeshVertexBufferLayout {
|
||||
let mut attributes = Vec::with_capacity(self.attributes.len());
|
||||
let mut attribute_ids = Vec::with_capacity(self.attributes.len());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user