Chrome 149-150 introduces two notable WebGPU changes. First, Immediates (also called push constants or root constants) allow small, frequently changing data to be passed directly to shaders via the new `<immediate>` WGSL address space and `setImmediates()` JavaScript API, bypassing GPU buffer creation and bind group overhead for per-draw-call data like object IDs or transformation matrices. Feature detection is available via `navigator.gpu.wgslLanguageFeatures`. Second, stricter validation rules for transient attachments now require `viewFormats` to be an empty array when creating transient textures, prevent `createView()` from changing usage flags, and disallow transient attachments as `resolveTarget` in render passes.

7m read timeFrom developer.chrome.com
Post cover image
Table of contents
ImmediatesStricter validation for transient attachmentsDawn updatesWhat's New in WebGPU
977 Impressions