pub async fn new_windowed_adapter_device_queue(
width: u32,
height: u32,
instance: &Instance,
window: impl Into<SurfaceTarget<'static>>,
) -> Result<(Adapter, Device, Queue, RenderTarget), ContextError>
Expand description
Create a new suite of wgpu
machinery using a window or canvas.
ยงNote
This function is used internally.