ReadonlybindingsThe storage buffers, in binding order. A bare buffer binds read-write.
Optional ReadonlyentryThe kernel's entry point; COMPUTE_ENTRY_POINT when omitted.
Optional ReadonlylabelDiagnostic name, echoed on the pass and pipeline labels.
ReadonlyshaderThe compute kernel, as shader source.
ReadonlyworkgroupsWorkgroup counts along x, y, z — §82's workgroups: [1024, 1, 1].
Non-negative integers; a zero count is a defined no-op dispatch.
§82's
ComputePass, backend-independent: a compute kernel's source, the workgroup grid to dispatch, and the storage buffers it reads and writes — bound at@group(0),@binding(i)for array index i (module header on the ordered-array shape).The
shaderstring is in the dispatching backend's kernel language — WGSL on the one backend that declaresRenderer.compute?()today. The descriptor does not name the language, exactly asScreenEffectdoes not name GLSL: a future compute-capable backend declares what it compiles.