Add a note that copying within the same buffer panics

This commit is contained in:
Jamen Marz authored and Dzmitry Malyshau committed 2021-09-15 11:01:37 -04:00
1 parent a5e6e8f9cc
commit 5b133c34ec
1 file changed
+2 -1
+2 -1
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,