webgpu_traits/messages/to_dom.rs
1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4
5//! IPC messages that are sent to WebGPU DOM objects.
6
7use wgpu_core::instance::RequestDeviceError;
8use wgpu_types::DeviceDescriptor;
9
10use crate::{WebGPUDevice, WebGPUQueue};
11
12pub type WebGPUDeviceResponse = (
13 WebGPUDevice,
14 WebGPUQueue,
15 Result<DeviceDescriptor<Option<String>>, RequestDeviceError>,
16);