Investigate support for WebGPU Immediates (push constants)
メンテナーはふだん 1 日以内に返信
@mvaligursky がすでに取り組んでいます。
2026年6月17日 から。
評価
この issue はまだ評価されていません。
説明
Feature
Investigate Immediates (a.k.a. push/root constants), shipped in Chrome 149/150.
Immediates let you pass small, frequently-changing data directly to a shader without creating a GPU buffer or bind group. The values are injected straight into the pass encoder, avoiding a memory write and a bind-group lookup per update.
API surface:
- WGSL — declare via the
immediateaddress space:var<immediate> color: vec4f; - JS — set before a draw call:
passEncoder.setImmediates(/*rangeOffset=*/0, new Float32Array([1, 0, 0, 1])); passEncoder.draw(3); - Pipeline layout —
layout: 'auto'infersimmediateSizefrom the WGSL module; explicit layouts declare it. - Capability detection —
navigator.gpu.wgslLanguageFeatures.has('immediate_address_space').
Benefit
- Reduce CPU overhead for per-draw data that changes every draw call (object IDs, small per-draw transforms/params) by skipping uniform-buffer writes and bind-group rebinds.
- A potential fast path for the kind of redundant state churn discussed in #7656 / #7880, where WebGPU's per-draw binding cost lags WebGL2.
Notes
- Chrome 149/150 only at the moment; WebGPU-only with no WebGL2 equivalent, so it requires capability detection and a graceful fallback to uniform buffers.
- Strictly for small values — large arrays, complex lighting structures, and big matrices should stay in uniform/storage buffers (push-constant size budget is small).
- Requires plumbing the
immediateaddress space through shader generation and the WebGPU pipeline-layout/draw path. - Ref: https://developer.chrome.com/blog/new-in-webgpu-149-150#immediates
- 主要言語
- JavaScript
- スター
- 17.2k
- フォーク
- 2k
- 平均マージ
- 6時間 39分
- マージ済み PR(30日)
- 222
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
playcanvas/engine のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
playcanvas/engine#9769 ·
メンテナーはふだん 1 日以内に返信
-
XrInputSource#elementEntity holds the ElementComponent, not the Entity its docs and type promiseオープンarea: xr
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
playcanvas/engine#9660 ·
メンテナーはふだん 1 日以内に返信
-
Isotropic GGX specular visibility term uses alpha^4 instead of alpha^2対応中かも @Yahiro025 が 36 日前に担当しました。 オープンarea: gltf area: graphics
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
playcanvas/engine#9510 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
playcanvas/engine#9335 ·
メンテナーはふだん 1 日以内に返信
-
area: ui enhancement
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
playcanvas/engine#5777 ·
メンテナーはふだん 1 日以内に返信
playcanvas/engine の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
feimacode/open-design-agent-kit#66 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
xojs/eslint-config-xo#134 ·
-
FEATURE REQUEST
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
linuxmint/cinnamon-spices-extensions#1193 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
huggingface/transformers.js#1839 ·
メンテナーはふだん 1 日以内に返信