Skip to content

Commit

Permalink
Added fill_buffer method documentation
Browse files Browse the repository at this point in the history
* Changed a trace from wgpu-core (wrong name bc of copy-paste)
  • Loading branch information
UpsettingBoy committed Nov 13, 2021
1 parent f6fdaca commit 6dbfe63
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion wgpu-core/src/command/clear.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
None => dst_buffer.size,
};
if offset == end {
log::trace!("Ignoring clear_buffer of size 0");
log::trace!("Ignoring fill_buffer of size 0");
return Ok(());
}

Expand Down
6 changes: 6 additions & 0 deletions wgpu/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2383,6 +2383,12 @@ impl CommandEncoder {
);
}

/// Fills buffer with `value`.
///
/// # Panics
///
/// - Buffer does not have `COPY_DST` or `STORAGE` usage.
/// - Range it out of bounds
pub fn fill_buffer(
&mut self,
buffer: &Buffer,
Expand Down

0 comments on commit 6dbfe63

Please sign in to comment.