mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-24 16:31:11 +01:00
[rs] 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 <aloucks@cofront.net>
This commit is contained in:
commit
c91758dc4a
1 file changed
+10
-2
+10
-2
@@ -1243,10 +1243,18 @@ impl<'a> RenderPass<'a> {
|
||||
|
||||
/// Assign a vertex buffer to a slot.
|
||||
///
|
||||
/// Subsequent calls to [`draw`](RenderPass::draw) and [`draw_indexed`](RenderPass::draw_indexed)
|
||||
/// on this [`RenderPass`] will use `buffer` as one of the source vertex buffers.
|
||||
/// Subsequent calls to [`draw`] and [`draw_indexed`] on this
|
||||
/// [`RenderPass`] will use `buffer` as one of the source vertex buffers.
|
||||
///
|
||||
/// The `slot` refers to the index of the matching descriptor in
|
||||
/// [`RenderPipelineDescriptor::vertex_buffers`].
|
||||
///
|
||||
/// If `size == 0`, the remaining part of the buffer is considered.
|
||||
///
|
||||
/// [`draw`]: #method.draw
|
||||
/// [`draw_indexed`]: #method.draw_indexed
|
||||
/// [`RenderPass`]: struct.RenderPass.html
|
||||
/// [`RenderPipelineDescriptor::vertex_buffers`]: struct.RenderPipelineDescriptor.html#structfield.vertex_buffers
|
||||
pub fn set_vertex_buffer(
|
||||
&mut self,
|
||||
slot: u32,
|
||||
|
||||
Reference in new issue
Block a user