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

Commit 0f2bc33

Browse files
committed
Fix RenderPass::set_vertex_buffer doc link
1 parent 11a63e4 commit 0f2bc33

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1472,7 +1472,7 @@ impl<'a> RenderPass<'a> {
14721472

14731473
/// Draws primitives from the active vertex buffer(s).
14741474
///
1475-
/// The active vertex buffers can be set with [`RenderPass::set_vertex_buffers`].
1475+
/// The active vertex buffers can be set with [`RenderPass::set_vertex_buffer`].
14761476
pub fn draw(&mut self, vertices: Range<u32>, instances: Range<u32>) {
14771477
unsafe {
14781478
wgn::wgpu_render_pass_draw(
@@ -1488,7 +1488,7 @@ impl<'a> RenderPass<'a> {
14881488
/// Draws indexed primitives using the active index buffer and the active vertex buffers.
14891489
///
14901490
/// The active index buffer can be set with [`RenderPass::set_index_buffer`], while the active
1491-
/// vertex buffers can be set with [`RenderPass::set_vertex_buffers`].
1491+
/// vertex buffers can be set with [`RenderPass::set_vertex_buffer`].
14921492
pub fn draw_indexed(&mut self, indices: Range<u32>, base_vertex: i32, instances: Range<u32>) {
14931493
unsafe {
14941494
wgn::wgpu_render_pass_draw_indexed(
@@ -1504,7 +1504,7 @@ impl<'a> RenderPass<'a> {
15041504

15051505
/// Draws primitives from the active vertex buffer(s) based on the contents of the `indirect_buffer`.
15061506
///
1507-
/// The active vertex buffers can be set with [`RenderPass::set_vertex_buffers`].
1507+
/// The active vertex buffers can be set with [`RenderPass::set_vertex_buffer`].
15081508
pub fn draw_indirect(&mut self, indirect_buffer: &'a Buffer, indirect_offset: BufferAddress) {
15091509
unsafe {
15101510
wgn::wgpu_render_pass_draw_indirect(
@@ -1519,7 +1519,7 @@ impl<'a> RenderPass<'a> {
15191519
/// based on the contents of the `indirect_buffer`.
15201520
///
15211521
/// The active index buffer can be set with [`RenderPass::set_index_buffer`], while the active
1522-
/// vertex buffers can be set with [`RenderPass::set_vertex_buffers`].
1522+
/// vertex buffers can be set with [`RenderPass::set_vertex_buffer`].
15231523
pub fn draw_indexed_indirect(
15241524
&mut self,
15251525
indirect_buffer: &'a Buffer,

0 commit comments

Comments
 (0)