Fix length check

This commit is contained in:
hodasemi 2025-03-01 10:01:30 +01:00
parent 788543ae97
commit 8dd8d223dd

View file

@ -1048,7 +1048,7 @@ fn copy_buffers_to_image<'a, T: ReprC + Send + Sync + 'static>(
where
T: Copy,
{
debug_assert!(buffers.len() < image.layers as usize);
debug_assert!(buffers.len() == image.layers as usize);
// create a new command buffer
let command_buffer = CommandBuffer::new_primary().build(device.clone(), queue.clone())?;