From ddc47aa56b2c59911b7fec018d7ae89bf2a77bee Mon Sep 17 00:00:00 2001 From: Samson <16504129+sagudev@users.noreply.github.com> Date: Sat, 30 Sep 2023 14:30:12 +0200 Subject: Codegen support multiple interfaces in single webidl file & WebGPU single webidl (#30448) * Codegen support multiple interfaces in single webidl file * Merge GPU*.webidl into WebGPU.webidl * Update gpu files to use WebGPUBinding module file --- components/script/dom/gpuqueue.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'components/script/dom/gpuqueue.rs') diff --git a/components/script/dom/gpuqueue.rs b/components/script/dom/gpuqueue.rs index 3061211f20f..a9a850e825f 100644 --- a/components/script/dom/gpuqueue.rs +++ b/components/script/dom/gpuqueue.rs @@ -7,13 +7,11 @@ use ipc_channel::ipc::IpcSharedMemory; use webgpu::identity::WebGPUOpResult; use webgpu::{wgt, WebGPU, WebGPUQueue, WebGPURequest}; -use super::bindings::codegen::Bindings::GPUCommandEncoderBinding::{ - GPUImageCopyTexture, GPUImageDataLayout, -}; +use super::bindings::codegen::Bindings::WebGPUBinding::{GPUImageCopyTexture, GPUImageDataLayout}; use crate::dom::bindings::cell::DomRefCell; -use crate::dom::bindings::codegen::Bindings::GPUBufferBinding::GPUSize64; -use crate::dom::bindings::codegen::Bindings::GPUQueueBinding::GPUQueueMethods; -use crate::dom::bindings::codegen::Bindings::GPUTextureBinding::GPUExtent3D; +use crate::dom::bindings::codegen::Bindings::WebGPUBinding::{ + GPUExtent3D, GPUQueueMethods, GPUSize64, +}; use crate::dom::bindings::codegen::UnionTypes::ArrayBufferViewOrArrayBuffer as BufferSource; use crate::dom::bindings::error::{Error, Fallible}; use crate::dom::bindings::reflector::{reflect_dom_object, Reflector}; -- cgit v1.2.3