mirror of
https://github.com/ocornut/imgui.git
synced 2026-07-15 05:40:36 +00:00
This commit is contained in:
@@ -63,6 +63,10 @@
|
||||
|
||||
// Initialize the graphics adapter
|
||||
{
|
||||
if (!navigator.gpu) {
|
||||
throw Error("WebGPU not supported.");
|
||||
}
|
||||
|
||||
const adapter = await navigator.gpu.requestAdapter();
|
||||
const device = await adapter.requestDevice();
|
||||
Module.preinitializedWebGPUDevice = device;
|
||||
|
||||
Reference in New Issue
Block a user