Function handle_dst_texture_init

Source
fn handle_dst_texture_init(
    state: &mut EncodingState<'_, '_>,
    destination: &TexelCopyTextureInfo<Arc<Texture>>,
    copy_size: &Extent3d,
    texture: &Arc<Texture>,
) -> Result<(), TransferError>
Expand description

Prepare a transfer’s destination texture.

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