Add a note that copying within the same buffer panics

This commit is contained in:
Jamen Marz 2021-09-14 19:17:23 -06:00 committed by Dzmitry Malyshau
parent a5e6e8f9cc
commit 5b133c34ec

View File

@ -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,