mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-25 16:24:24 +00:00
Add a note that copying within the same buffer panics
This commit is contained in:
parent
a5e6e8f9cc
commit
5b133c34ec
@ -2207,6 +2207,7 @@ impl CommandEncoder {
|
||||
///
|
||||
/// - Buffer offsets or copy size not a multiple of [`COPY_BUFFER_ALIGNMENT`].
|
||||
/// - Copy would overrun buffer.
|
||||
/// - Copy within the same buffer.
|
||||
pub fn copy_buffer_to_buffer(
|
||||
&mut self,
|
||||
source: &Buffer,
|
||||
@ -2300,7 +2301,7 @@ impl CommandEncoder {
|
||||
///
|
||||
/// - `CLEAR_COMMANDS` extension not enabled
|
||||
/// - Texture does not have `COPY_DST` usage.
|
||||
/// - Range it out of bounds
|
||||
/// - Range is out of bounds
|
||||
pub fn clear_texture(&mut self, texture: &Texture, subresource_range: &ImageSubresourceRange) {
|
||||
Context::command_encoder_clear_texture(
|
||||
&*self.context,
|
||||
|
Loading…
Reference in New Issue
Block a user