← v153/webgpu-buffer-view-feature · conformance
critique · rev 1
v153/webgpu-buffer-view-feature
rubric
| dimension | score | severity | evidence |
|---|---|---|---|
| factual-source-fidelity | 5/5 | info | Every grammar rule, overload signature, precondition, and error behavior was extracted from the live merged WGSL spec text (gpuweb.github.io/gpuweb/wgsl §6.3, §17.14, §4.1.2, conversion-rank table, §13.3.4) and the merged proposal on 2026-07-29; overloads quoted verbatim; PR #6291 merge state (2026-07-14), dawn.json extension value 9, and the CTS test files were fetched live, not assumed. |
| milestone-mapping | 5/5 | info | Slug webgpu-buffer-view-feature derived by executing the repo's own slugify() on the exact listing name 'WebGPU: `buffer_view` feature' (underscore collapses per [^a-z0-9]+ rule — the task's expected underscore-preserving slug was verified wrong against code); milestone v153 from the feature's position in the milestone=153 listing (Enabled by default); identity 5094091886034944 on all 4 routes. |
| completeness | 5/5 | info | Inventory covers the full developer-facing surface: buffer types, extension mechanics, JS-side detection, all three built-ins (child routes), and the buffer-pointer automatic conversions; nine dimensions each with sourced not-applicable rationales where genuinely empty (directive inputs, detection errors). |
| explanation-quality | 4/5 | minor | Model-first structure (why → types → mechanics → built-ins → conversions) with the interprocedural minimum-size subtlety given its own explanation and the spec's worked example; the proposal's many open TODOs (minimum binding size, struct-depth limits) are noted where they affect the contract but not enumerated exhaustively. |
| examples | 4/5 | minor | Five semantic pre/code examples: proposal-derived wireframe packing (WGSL + JS), detection snippet, requires-directive snippet, conversion example, and the spec's own bufferLength example (with the spec's duplicate @binding(0) corrected to @binding(1)). In a 2026-10-08 local Chrome 154 SwiftShader WebGPU run, Dawn/Tint reported a duplicate-resource-binding error for the spec version and no compilation messages for the page's corrected shader. |
| browser-compat-fallbacks | 5/5 | info | No BCD key exists for the feature (verified in api/GPU.json) and webstatus has no entry (zero-match query linked) — interim tables are labelled as such and compiled from the listing/record plus the exact standards-positions links on the record; the detection API's real BCD support table (Chrome 144/115-partial, Android 121, Firefox 141 partial, Safari 26) is shown separately. |
| links-validity | 4/5 | minor | All citation labels are direct links (zero plain-text sources); WGSL anchors verified present in the live spec HTML (#buffer-types, #buffer-view-builtin-functions, #language-extensions-sec, #conversion-rank, #buffer-binding-determines-runtime-sized-array-element-count, #arrayLength-builtin). Full curl sweep of all external hrefs still pending at report time. |
| accessibility | 4/5 | info | Content in landmarks (main/header/footer), baseline banner as role=note with aria-label, tables use th scope, code blocks are scrollable rather than clipped; accessibility guidance consulted and applied (landmarks, semantic structure); colors inherit the AA-checked design-system variables. |
| responsive-ux | 4/5 | minor | css-layout guidance applied: tables contained in .table-wrap with overflow-wrap:anywhere on cells and long tokens, pre blocks scroll internally, h1/lede wrap anywhere. Screenshots at 390px and 1280px pending at report time (workflow step 4) — score assumes they pass; will re-shoot and fix if not. |
| showcase-demo-relationship | 5/5 | info | CPS has no route for this feature (both slug spellings HEAD-404, checked 2026-07-29), so per the Case B rule the page uses a text fallback and links the upstream sample instead (webgpu-samples PR #568, open) — no broken iframe embedded. |
modern-web-guidance consulted
- responsive data tables and code blocks in reference documentation — Lean on intrinsic sizing and the browser layout engine; avoid hardcoded dimensions; keep overflow contained (overflow tracking and layout stability). (Applied: doc-tables use intrinsic widths inside .table-wrap{overflow-x:auto} with overflow-wrap:anywhere on cells and inline code; pre blocks scroll internally; no fixed pixel widths anywhere in page CSS.)
- responsive data tables and code blocks in reference documentation — Place all content within landmarks; use semantic HTML structure for navigability. (Applied: main/header/footer landmarks, role=note + aria-label on the baseline banner, th scope=row/col on all tables, headings in a strict h1→h2 hierarchy.)
open questions
- The proposal leaves the API-side minimum-binding-size rule for buffer-typed bindings as a TODO ('Decide on minimum binding size'); the merged WGSL text defines the shader-side minimum-size analysis but the WebGPU spec has no buffer_view content — the exact minBindingSize contract a developer should assume is therefore undocumented in normative text.
- The proposal's TODO on restricting T to a single level of structures is unresolved in the proposal text; the merged spec's precondition ('T must satisfy the address space layout constraints') is what the page documents — whether implementations accept nested structs beyond current WGSL uniform-layout rules is untested here.
- Dawn tags the extension ['dawn'] in dawn.json while the WGSL spec now standardizes it; whether/when the jsrepr 'buffer_view' string seen by wgslLanguageFeatures changes is not recorded in any source read.
- The live WGSL bufferLength example still repeats @group(0) @binding(0). Chrome 154 Dawn/Tint rejects it but accepts the page's corrected @binding(1) version; editors have not yet corrected the published spec example.
follow-up goals
- [high · targeted-fix] Track the WebGPU spec for buffer_view binding/minBindingSize text (proposal TODO) and re-anchor the API-side section once normative text lands.
- [medium · targeted-fix] Re-check webgpu-samples PR #568 and the CPS catalogue; embed a live iframe (or link the merged sample) once a 200 demo route exists.
- [medium · targeted-fix] When BCD/web-features gain a buffer_view entry, replace the interim compat tables with BCD-anchored ones.