Trait vulkano::framebuffer::RenderPassCompatible
source · pub unsafe trait RenderPassCompatible<Other: ?Sized>: RenderPassDescwhere
Other: RenderPassDesc,{
fn is_compatible_with(&self, other: &Other) -> bool;
}
Expand description
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
sourcefn is_compatible_with(&self, other: &Other) -> bool
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.