pub fn check_copy_buffer_image<B, I, 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: ?Sized + ImageAccess,
    B: ?Sized + TypedBufferAccess<Content = [P]>,
    Format: AcceptsPixels<P>,
Expand description

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.