1816140.html (477B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <script> 5 window.addEventListener("load", async () => { 6 const adapter = await navigator.gpu.requestAdapter({}) 7 const device = await adapter.requestDevice({}) 8 const canvas = new OffscreenCanvas(184, 4266759736) 9 context = canvas.getContext('webgpu') 10 context.configure({ 11 device: device, 12 format: context.getPreferredFormat(adapter), 13 }) 14 }) 15 </script> 16 </head> 17 </html>