Developer reports

WebGPU dynamic-offset assignment

Assign offsets by sparse binding number and trace stated byte minima and alignment.

Your inputs

Start with an example

Your inputs stay in your browser.

Your result

Example result

How it works

Sort buffer bindings by binding number and consume offsets only for dynamic entries. Add static and dynamic offsets with exact integer arithmetic, then check each stated minimum extent and the two offset alignments separately.

The descriptor order is 5,1,3, but the dynamic offset order is binding 1 then 5. Binding 3 consumes no offset. The three stated minimum ends are 832, 32 and 640 bytes.

Limits

Logical trace pinned to the September 15, 2026 WebGPU draft: up to 10000 entries and safe-integer byte fields; sums export as exact decimal strings. Explicit alignment limits required. Zero minBindingSize defers shader validation; nonzero layout minima do not reveal actual shader use. No GPU calls, actual binding.size assumption, usage/lifetime, pipeline/aliasing/encoder-state or full binding-validity verdict.