mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
webgpu: Refactor webgpu crate (#32255)
* wgpu(_core) -> wgc * Refactor webgpu crate split lib.rs into multiple modules
This commit is contained in:
parent
c4f8599404
commit
168d43f24a
21 changed files with 1475 additions and 1413 deletions
|
@ -24,7 +24,7 @@ use serde::{Deserialize, Serialize};
|
|||
use servo_url::{ImmutableOrigin, ServoUrl};
|
||||
use smallvec::SmallVec;
|
||||
use style_traits::CSSPixel;
|
||||
use webgpu::{wgpu, WebGPU, WebGPUResponseResult};
|
||||
use webgpu::{wgc, WebGPU, WebGPUResponseResult};
|
||||
use webrender_api::units::{DeviceIntPoint, DeviceIntSize};
|
||||
|
||||
use crate::{
|
||||
|
@ -258,8 +258,8 @@ pub enum ScriptMsg {
|
|||
/// Create a WebGPU Adapter instance
|
||||
RequestAdapter(
|
||||
IpcSender<Option<WebGPUResponseResult>>,
|
||||
wgpu::instance::RequestAdapterOptions,
|
||||
SmallVec<[wgpu::id::AdapterId; 4]>,
|
||||
wgc::instance::RequestAdapterOptions,
|
||||
SmallVec<[wgc::id::AdapterId; 4]>,
|
||||
),
|
||||
/// Get WebGPU channel
|
||||
GetWebGPUChan(IpcSender<Option<WebGPU>>),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue