logo
pub fn check_copy_buffer(
    device: &Device,
    source: &dyn BufferAccess,
    destination: &dyn BufferAccess,
    source_offset: DeviceSize,
    destination_offset: DeviceSize,
    size: DeviceSize
) -> Result<(), CheckCopyBufferError>
Expand description

Checks whether a copy buffer command is valid.

Panic

  • Panics if the source and destination were not created with device.