[][src]Function vulkano::command_buffer::validity::check_copy_buffer_image

pub fn check_copy_buffer_image<B: ?Sized, I: ?Sized, P>(
    device: &Device,
    buffer: &B,
    image: &I,
    ty: CheckCopyBufferImageTy,
    image_offset: [u32; 3],
    image_size: [u32; 3],
    image_first_layer: u32,
    image_num_layers: u32,
    image_mipmap: u32
) -> Result<(), CheckCopyBufferImageError> where
    I: ImageAccess,
    B: TypedBufferAccess<Content = [P]>,
    Format: AcceptsPixels<P>, 

Checks whether a copy buffer-image command is valid. Can check both buffer-to-image copies and image-to-buffer copies.

Panic

  • Panics if the buffer and image were not created with device.