pointer_composite_access
WGSL language feature
Specification: WGSL § pointer_composite_access
Check navigator.gpu?.wgslLanguageFeatures?.has('pointer_composite_access')
before choosing a shader that uses this language feature. It is available automatically
when supported; requires pointer_composite_access; documents the dependency
and rejects the shader on unsupported implementations. This language token is not a
requiredFeatures entry for requestDevice(); any additional
device requirements are described below.
When p points to a structure, p.member refers to that member of the pointed-to structure. For a pointer to an array, p[i] accesses its selected element. These forms provide the same kind of memory access as (*p).member and (*p)[i], with less punctuation in pointer-heavy code.
This helps generated shaders and reusable compute helpers remain readable when they traverse nested arrays and structures. It is a syntax convenience for an existing memory view, not a data copy or a new allocation.
It does not by itself relax which pointers can be passed to functions; that is unrestricted_pointer_parameters. Access modes and bounds rules still apply. For implementations without this syntax, generate the equivalent expression with an explicit dereference and parentheses.
Availability by month
| Month | With feature | Eligible reports | Availability |
|---|---|---|---|
| 2026-08 | 106 | 106 | 100.0% |
| 2026-09 | 36 | 36 | 100.0% |
By browser (last 30 days)
| Browser | Availability | n |
|---|---|---|
| chrome | 100.0% | 90 |
| edge | 100.0% | 8 |
| firefox | 100.0% | 44 |
Availability = share of first-party, non-quarantined reports with WebGPU on a hardware
(non-fallback) adapter
whose browser reports this token in navigator.gpu.wgslLanguageFeatures.
This measures language support in the browser, not a GPU hardware capability.
Developer-leaning sample.
Full methodology.