From 1591a3b506364d259293db926cef81c9240604f7 Mon Sep 17 00:00:00 2001 From: atbrakhi Date: Thu, 5 Dec 2024 17:07:27 +0100 Subject: Add `webgpu` feature flag (#34444) * Move script gpu files into webgpu folder Signed-off-by: atbrakhi * Modify gpu webidls Signed-off-by: atbrakhi * move gpu realted webidl Signed-off-by: atbrakhi * add webgpu feature to script Signed-off-by: atbrakhi * add dummy implementation for gpucanvascontext Signed-off-by: atbrakhi * fmt Signed-off-by: atbrakhi * add skip-if CARGO_FEATURE_WEBGPU Signed-off-by: atbrakhi * Move NavigatorGPU and workerNavigator GPU to webgpu idl Signed-off-by: atbrakhi * fmt and cleanup Signed-off-by: atbrakhi * review fix Signed-off-by: atbrakhi * enable webgpu by default and also some fmt fix Signed-off-by: atbrakhi * Add pref back, fix imports, small cleanups Signed-off-by: atbrakhi --------- Signed-off-by: atbrakhi --- components/script/dom/webgpu/gpusampler.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/script/dom/webgpu/gpusampler.rs') diff --git a/components/script/dom/webgpu/gpusampler.rs b/components/script/dom/webgpu/gpusampler.rs index ad7aa3e8b89..25fa90a2410 100644 --- a/components/script/dom/webgpu/gpusampler.rs +++ b/components/script/dom/webgpu/gpusampler.rs @@ -14,7 +14,7 @@ use crate::dom::bindings::reflector::{reflect_dom_object, DomObject, Reflector}; use crate::dom::bindings::root::DomRoot; use crate::dom::bindings::str::USVString; use crate::dom::globalscope::GlobalScope; -use crate::dom::gpudevice::GPUDevice; +use crate::dom::webgpu::gpudevice::GPUDevice; #[dom_struct] pub struct GPUSampler { -- cgit v1.2.3