Investigate support for WebGPU Immediates (push constants)
Maintainer thường phản hồi trong vòng 1 ngày
@mvaligursky đang làm issue này rồi.
Từ ngày 17/6/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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
- Ngôn ngữ chính
- JavaScript
- Star
- 17.2k
- Fork
- 2k
- Merge trung bình
- 6 giờ 59 phút
- Pull request đã merge (30 ngày)
- 228
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của playcanvas/engine
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
playcanvas/engine#9769 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
XrInputSource#elementEntity holds the ElementComponent, not the Entity its docs and type promiseĐang mởarea: xr
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
playcanvas/engine#9660 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Isotropic GGX specular visibility term uses alpha^4 instead of alpha^2Có thể đã có người làm @Yahiro025 đã nhận 35 ngày trước. Đang mởarea: gltf area: graphics
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
playcanvas/engine#9510 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Disable shape scaling by defaultĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
playcanvas/engine#9335 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: ui enhancement
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
playcanvas/engine#5777 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của playcanvas/engine
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug documentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
awslabs/visual-asset-management-system#880 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
04 type: enhancement 33 needs: docs
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 63/100
plone/volto#8495 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG]: Workspace settings forms stay at 50% width on narrow screens and wrap text word by wordĐang mởpossible bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Mintplex-Labs/anything-llm#6889 ·
Maintainer thường phản hồi trong vòng 1 ngày