[][src]Trait vulkano::framebuffer::RenderPassCompatible

pub unsafe trait RenderPassCompatible<Other: ?Sized>: RenderPassDesc where
    Other: RenderPassDesc
{ fn is_compatible_with(&self, other: &Other) -> bool; }

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 RenderPassDesc.

Note: This trait exists so that you can specialize it once specialization lands in Rust.

Required methods

fn is_compatible_with(&self, other: &Other) -> bool

Returns true if this layout is compatible with the other layout, as defined in the Render Pass Compatibility section of the Vulkan specs.

Loading content...


impl<A: ?Sized, B: ?Sized> RenderPassCompatible<B> for A where
    A: RenderPassDesc,
    B: RenderPassDesc

Loading content...