Skip to content

Commit 1164d81

Browse files
committed
[remove] Rc wrapper around the depth texture.
1 parent a365f53 commit 1164d81

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

crates/lambda-rs/src/render/texture.rs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -289,23 +289,13 @@ impl ColorAttachmentTextureBuilder {
289289
/// operations in render passes.
290290
#[derive(Debug)]
291291
pub 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

303295
impl 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.

0 commit comments

Comments
 (0)