]> git.nega.tv - josh/narcissus/commitdiff
shark: Remove duplicate image copy
authorJoshua Simmons <josh@nega.tv>
Sat, 27 Apr 2024 14:55:22 +0000 (16:55 +0200)
committerJoshua Simmons <josh@nega.tv>
Sat, 27 Apr 2024 14:55:22 +0000 (16:55 +0200)
title/shark/src/main.rs

index cbd63869e6d14fcad9643a219da5881de03c10a0..ad8cddc0cfd2af4cdd62de80f4c0fa58ecd05b16 100644 (file)
@@ -456,25 +456,6 @@ pub fn main() {
                 }],
             );
 
-            device.cmd_copy_buffer_to_image(
-                &mut cmd_buffer,
-                buffer.to_arg(),
-                image,
-                ImageLayout::Optimal,
-                &[BufferImageCopy {
-                    buffer_offset: 0,
-                    buffer_row_length: 0,
-                    buffer_image_height: 0,
-                    image_subresource: default(),
-                    image_offset: Offset3d { x: 0, y: 0, z: 0 },
-                    image_extent: Extent3d {
-                        width,
-                        height,
-                        depth: 1,
-                    },
-                }],
-            );
-
             device.cmd_barrier(
                 &mut cmd_buffer,
                 None,