Function wgpu_core::command::transfer::handle_src_texture_init

source ·
fn handle_src_texture_init(
    cmd_buf_data: &mut CommandBufferMutable,
    device: &Device,
    source: &ImageCopyTexture,
    copy_size: &Extent3d,
    texture: &Arc<Texture>,
    snatch_guard: &SnatchGuard<'_>,
) -> Result<(), TransferError>
Expand description

Prepare a transfer’s source texture.

Ensure the source texture of a transfer is in the right initialization state, and record the state for after the transfer operation.