File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed
crates/lambda-rs/src/render Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -289,23 +289,13 @@ impl ColorAttachmentTextureBuilder {
289289/// operations in render passes.
290290#[ derive( Debug ) ]
291291pub struct DepthTexture {
292- inner : Rc < platform:: DepthTexture > ,
293- }
294-
295- impl Clone for DepthTexture {
296- fn clone ( & self ) -> Self {
297- return DepthTexture {
298- inner : self . inner . clone ( ) ,
299- } ;
300- }
292+ inner : platform:: DepthTexture ,
301293}
302294
303295impl DepthTexture {
304296 /// Create a high-level depth texture from a platform texture.
305297 pub ( crate ) fn from_platform ( texture : platform:: DepthTexture ) -> Self {
306- return DepthTexture {
307- inner : Rc :: new ( texture) ,
308- } ;
298+ return DepthTexture { inner : texture } ;
309299 }
310300
311301 /// The depth format used by this attachment.
You can’t perform that action at this time.
0 commit comments