We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a365f53 commit 1164d81Copy full SHA for 1164d81
1 file changed
crates/lambda-rs/src/render/texture.rs
@@ -289,23 +289,13 @@ impl ColorAttachmentTextureBuilder {
289
/// operations in render passes.
290
#[derive(Debug)]
291
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
- }
+ inner: platform::DepthTexture,
301
}
302
303
impl DepthTexture {
304
/// Create a high-level depth texture from a platform texture.
305
pub(crate) fn from_platform(texture: platform::DepthTexture) -> Self {
306
307
- inner: Rc::new(texture),
308
+ return DepthTexture { inner: texture };
309
310
311
/// The depth format used by this attachment.
0 commit comments