From a2bddd167700d5af9ee054481b9492a171b7e4b9 Mon Sep 17 00:00:00 2001 From: Xiaochun Tong Date: Wed, 18 Oct 2023 19:36:16 -0400 Subject: [PATCH] Tex2d/3d clone() should clone content rather than references --- luisa_compute/src/resource.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/luisa_compute/src/resource.rs b/luisa_compute/src/resource.rs index 4430773..9c5bb40 100644 --- a/luisa_compute/src/resource.rs +++ b/luisa_compute/src/resource.rs @@ -1100,7 +1100,7 @@ impl Clone for Tex2d { (0..mips).map(|level| self.view(level).copy_to_texture_async(copy.view(level))), ); }); - todo!() + copy } } @@ -1144,7 +1144,7 @@ impl Clone for Tex3d { (0..mips).map(|level| self.view(level).copy_to_texture_async(copy.view(level))), ); }); - todo!() + copy } } impl fmt::Debug for Tex3d {