Skip to content

Commit

Permalink
Tex2d/3d clone() should clone content rather than references
Browse files Browse the repository at this point in the history
  • Loading branch information
shiinamiyuki committed Oct 18, 2023
1 parent 5a73d83 commit a2bddd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions luisa_compute/src/resource.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1100,7 +1100,7 @@ impl<T: IoTexel> Clone for Tex2d<T> {
(0..mips).map(|level| self.view(level).copy_to_texture_async(copy.view(level))),
);
});
todo!()
copy
}
}

Expand Down Expand Up @@ -1144,7 +1144,7 @@ impl<T: IoTexel> Clone for Tex3d<T> {
(0..mips).map(|level| self.view(level).copy_to_texture_async(copy.view(level))),
);
});
todo!()
copy
}
}
impl<T: IoTexel + fmt::Debug> fmt::Debug for Tex3d<T> {
Expand Down

0 comments on commit a2bddd1

Please sign in to comment.