Function vulkano::render_pass::ensure_image_view_compatible[][src]

pub fn ensure_image_view_compatible<I: ?Sized>(
    render_pass_desc: &RenderPassDesc,
    attachment_num: usize,
    image_view: &I
) -> Result<(), IncompatibleRenderPassAttachmentError> where
    I: ImageViewAbstract

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.