aboutsummaryrefslogtreecommitdiffstats
path: root/components/shared/webgpu/messages/to_dom.rs
blob: b5d5db72e381e1ea9346e3ed83e7d06ec9764530 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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>,
);