mepeyew/context/extensions/
webgpu_init.rs

1/// This requires async to be present.
2/// Use [`super::WebGpuInitFromWindow`] otherwise.
3#[derive(Debug, Clone)]
4pub struct WebGpuInit {
5    /// Used if you indend on rendering to a canvas.
6    /// ```html
7    /// <canvas id="renderhere"></canvas>
8    ///             ^canvas_id
9    /// ```
10    pub canvas_id: Option<String>,
11}