ui

module pkg::alloy::gpu::webgpu::webgpusource

The WebGPU device, in a browser: the JavaScript beside this file (webgpu.web.js) opens the browser's device before the program starts and keeps the objects, the program holding their indices. Shaders are the WGSL #shader checked, which the browser compiles. Reads back (read_texture, read_buffer) are not there: WebGPU only completes them later, in the browser's event loop.