diff options
Diffstat (limited to 'components/shared/webgpu/messages/to_dom.rs')
-rw-r--r-- | components/shared/webgpu/messages/to_dom.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/components/shared/webgpu/messages/to_dom.rs b/components/shared/webgpu/messages/to_dom.rs new file mode 100644 index 00000000000..b5d5db72e38 --- /dev/null +++ b/components/shared/webgpu/messages/to_dom.rs @@ -0,0 +1,16 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ + +//! IPC messages that are sent to WebGPU DOM objects. + +use wgpu_core::instance::RequestDeviceError; +use wgpu_types::DeviceDescriptor; + +use crate::{WebGPUDevice, WebGPUQueue}; + +pub type WebGPUDeviceResponse = ( + WebGPUDevice, + WebGPUQueue, + Result<DeviceDescriptor<Option<String>>, RequestDeviceError>, +); |