export async function detectWebGPU() { try { const adapter = await navigator.gpu.requestAdapter(); return !!adapter; } catch (e) { return false; } }