[−][src]Function nannou::vk::framebuffer::ensure_image_view_compatible
pub fn ensure_image_view_compatible<Rp, I>(
render_pass: &Rp,
attachment_num: usize,
image: &I
) -> Result<(), IncompatibleRenderPassAttachmentError> where
I: ImageViewAccess + ?Sized,
Rp: RenderPassDesc + ?Sized,
Checks whether the given image view is allowed to be the nth attachment of the given render pass.
Panic
Panics if the attachment number is out of range.