Move convert_* functions into gpuconvert.rs (#31521)

* feat: unify convert_* functions across gpu*.rs files #31104

* chore: reorder and format
This commit is contained in:
eri 2024-03-06 17:48:34 +01:00 committed by GitHub
parent 7ce19f2885
commit a8170966ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 365 additions and 339 deletions

View file

@ -20,8 +20,11 @@ use crate::dom::bindings::str::USVString;
use crate::dom::globalscope::GlobalScope;
use crate::dom::gpubuffer::{GPUBuffer, GPUBufferState};
use crate::dom::gpucommandbuffer::GPUCommandBuffer;
use crate::dom::gpucommandencoder::{convert_ic_texture, convert_image_data_layout};
use crate::dom::gpudevice::{convert_texture_size_to_dict, convert_texture_size_to_wgt, GPUDevice};
use crate::dom::gpuconvert::{
convert_ic_texture, convert_image_data_layout, convert_texture_size_to_dict,
convert_texture_size_to_wgt,
};
use crate::dom::gpudevice::GPUDevice;
#[dom_struct]
pub struct GPUQueue {