Function vulkano::command_buffer::validity::check_copy_buffer_image
source · [−]pub fn check_copy_buffer_image(
device: &Device,
buffer: &dyn BufferAccess,
image: &dyn ImageAccess,
ty: CheckCopyBufferImageTy,
image_offset: [u32; 3],
image_size: [u32; 3],
image_first_layer: u32,
image_num_layers: u32,
image_mipmap: u32
) -> Result<(), CheckCopyBufferImageError>
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
.