fn copy_texture_to_buffer( device: &Device, encoder: &mut CommandEncoder, texture: &Texture, buffer: &Buffer, buffer_stencil: &Option<Buffer>, )