Skip to content
This repository was archived by the owner on Jun 18, 2021. It is now read-only.

Commit 76ffea3

Browse files
bors[bot]aloucks
andauthored
Merge #201
201: Add note that `slot` refers to the index in RenderPipelineDescriptor r=kvark a=aloucks Add note that `slot` refers to the index in `RenderPipelineDescriptor::vertex_buffers` Also fixed intra-doc links for `set_vertex_buffer`. Co-authored-by: Aaron Loucks <[email protected]>
2 parents 9a67ce1 + 2425312 commit 76ffea3

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/lib.rs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1243,10 +1243,18 @@ impl<'a> RenderPass<'a> {
12431243

12441244
/// Assign a vertex buffer to a slot.
12451245
///
1246-
/// Subsequent calls to [`draw`](RenderPass::draw) and [`draw_indexed`](RenderPass::draw_indexed)
1247-
/// on this [`RenderPass`] will use `buffer` as one of the source vertex buffers.
1246+
/// Subsequent calls to [`draw`] and [`draw_indexed`] on this
1247+
/// [`RenderPass`] will use `buffer` as one of the source vertex buffers.
1248+
///
1249+
/// The `slot` refers to the index of the matching descriptor in
1250+
/// [`RenderPipelineDescriptor::vertex_buffers`].
12481251
///
12491252
/// If `size == 0`, the remaining part of the buffer is considered.
1253+
///
1254+
/// [`draw`]: #method.draw
1255+
/// [`draw_indexed`]: #method.draw_indexed
1256+
/// [`RenderPass`]: struct.RenderPass.html
1257+
/// [`RenderPipelineDescriptor::vertex_buffers`]: struct.RenderPipelineDescriptor.html#structfield.vertex_buffers
12501258
pub fn set_vertex_buffer(
12511259
&mut self,
12521260
slot: u32,

0 commit comments

Comments
 (0)