[−][src]Function nannou::vk::command_buffer::validity::check_copy_buffer_image
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
B: TypedBufferAccess<Content = [P]> + ?Sized,
I: ImageAccess + ?Sized,
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
.