← Back to release summary

WebGPU: `linear_indexing` feature

Category
Graphics
Type
New or changed feature
Status
Proposed (Chrome Proposed)
Intent stage
None

Summary

Functionality added to the WebGPU spec after its first shipment in a browser. Adds two new compute shader built-in values for user quality of life. These are implemented for all backends (as polyfills of existing built-in values).

Motivation

This feature adds two new compute built-in values to WGSL. They are quality-of-life additions whose implementations are polyfilled on top of existing values. This was a user-requested feature to the WebGPU WG. It is easy to get these polyfills wrong, so there is value in being implementation provided (and tested). Additionally implementations can provide safety checks in the case of overflows.

Standards & signals

Explainers: https://github.com/gpuweb/gpuweb/issues/5154 https://github.com/gpuweb/gpuweb/issues/5154#issuecomment-4114620422

View on chromestatus.com