From ad80f47b2f046b3dbe9c46fda57dae45da4900d3 Mon Sep 17 00:00:00 2001 From: ReversedCausality Date: Wed, 18 Oct 2023 17:30:50 +0100 Subject: [PATCH] Added tex2d clone. --- luisa_compute/src/resource.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/luisa_compute/src/resource.rs b/luisa_compute/src/resource.rs index 29f6aa3..7ebcac4 100644 --- a/luisa_compute/src/resource.rs +++ b/luisa_compute/src/resource.rs @@ -1078,6 +1078,7 @@ impl_storage_texel!([f16; 4], Byte4, f32, Float2, Float4, Int2, Int4, Uint2, Uin // `T` is the read out type of the texture, which is not necessarily the same as // the storage type In fact, the texture can be stored in any format as long as // it can be converted to `T` +#[derive(Clone)] pub struct Tex2d { #[allow(dead_code)] pub(crate) width: u32, @@ -1101,6 +1102,7 @@ impl fmt::Debug for Tex2d { // `T` is the read out type of the texture, which is not necessarily the same as // the storage type In fact, the texture can be stored in any format as long as // it can be converted to `T` +#[derive(Clone)] pub struct Tex3d { #[allow(dead_code)] pub(crate) width: u32,