diff options
author | Samson <16504129+sagudev@users.noreply.github.com> | 2024-05-08 15:53:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-08 13:53:39 +0000 |
commit | 168d43f24a18184afadc6aa8646537289c85860a (patch) | |
tree | 138629b4b003141fbb5c6cb8fcf8cee3272664c2 /components/script/dom/gpu.rs | |
parent | c4f8599404e52da58e9e4e8f8aef3e7efa4996c9 (diff) | |
download | servo-168d43f24a18184afadc6aa8646537289c85860a.tar.gz servo-168d43f24a18184afadc6aa8646537289c85860a.zip |
webgpu: Refactor webgpu crate (#32255)
* wgpu(_core) -> wgc
* Refactor webgpu crate
split lib.rs into multiple modules
Diffstat (limited to 'components/script/dom/gpu.rs')
-rw-r--r-- | components/script/dom/gpu.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/gpu.rs b/components/script/dom/gpu.rs index d3babad3850..1dbd852f0f3 100644 --- a/components/script/dom/gpu.rs +++ b/components/script/dom/gpu.rs @@ -10,7 +10,7 @@ use ipc_channel::router::ROUTER; use js::jsapi::Heap; use script_traits::ScriptMsg; use webgpu::wgt::PowerPreference; -use webgpu::{wgpu, WebGPUResponse, WebGPUResponseResult}; +use webgpu::{wgc, WebGPUResponse, WebGPUResponseResult}; use super::bindings::codegen::Bindings::WebGPUBinding::GPUTextureFormat; use crate::dom::bindings::codegen::Bindings::WebGPUBinding::{ @@ -117,7 +117,7 @@ impl GPUMethods for GPU { if script_to_constellation_chan .send(ScriptMsg::RequestAdapter( sender, - wgpu::instance::RequestAdapterOptions { + wgc::instance::RequestAdapterOptions { power_preference, compatible_surface: None, force_fallback_adapter: options.forceFallbackAdapter, |