diff --git a/vulkano/src/framebuffer/framebuffer.rs b/vulkano/src/framebuffer/framebuffer.rs index 5d8560d1..f95f94b6 100644 --- a/vulkano/src/framebuffer/framebuffer.rs +++ b/vulkano/src/framebuffer/framebuffer.rs @@ -137,7 +137,7 @@ impl Framebuffer { pub fn is_compatible_with(&self, render_pass: &R) -> bool where R: RenderPassRef, Rp: RenderPassRef { - self.render_pass.is_compatible_with(render_pass) + self.render_pass.desc().is_compatible_with(render_pass.desc()) } /// Returns the width, height and layers of this framebuffer. diff --git a/vulkano/src/framebuffer/traits.rs b/vulkano/src/framebuffer/traits.rs index 5746991e..af7a872e 100644 --- a/vulkano/src/framebuffer/traits.rs +++ b/vulkano/src/framebuffer/traits.rs @@ -543,19 +543,19 @@ unsafe impl RenderPassSubpassInterface for A /// Trait implemented on render pass objects to check whether they are compatible /// with another render pass. /// -/// The trait is automatically implemented for all type that implement `RenderPassRef`. +/// The trait is automatically implemented for all type that implement `RenderPassDesc`. // TODO: once specialization lands, this trait can be specialized for pairs that are known to // always be compatible // TODO: maybe this can be unimplemented on some pairs, to provide compile-time checks? -pub unsafe trait RenderPassCompatible: RenderPassRef where Other: RenderPassRef { +pub unsafe trait RenderPassCompatible: RenderPassDesc where Other: RenderPassDesc { /// Returns `true` if this layout is compatible with the other layout, as defined in the /// `Render Pass Compatibility` section of the Vulkan specs. // TODO: return proper error fn is_compatible_with(&self, other: &Other) -> bool; } -unsafe impl RenderPassCompatible for A - where A: RenderPassRef, B: RenderPassRef +unsafe impl RenderPassCompatible for A + where A: RenderPassDesc, B: RenderPassDesc { fn is_compatible_with(&self, other: &B) -> bool { // FIXME: