Open
Bug 1960947
Opened 1 month ago
Updated 1 month ago
[WebGPU] https://mebyz.github.io/webgpu-renderer-demo/ doesnt draw anything on the screen
Categories
(Core :: Graphics: WebGPU, defect)
Core
Graphics: WebGPU
Tracking
()
NEW
People
(Reporter: mayankleoboy1, Unassigned)
References
(Depends on 1 open bug, Blocks 1 open bug, )
Details
Attachments
(2 files)
Go to https://mebyz.github.io/webgpu-renderer-demo/
Wait for 30 seconds or so.
AR: Nothing is drawn on the screen
ER: it should, like Chrome
Reporter | ||
Comment 1•1 month ago
|
||
Comment 2•1 month ago
|
||
It takes a while, like OP says, but console errors for WGSL shader compilation do come up in a large set after the paged has loaded. They're all failures of the form:
Shader 'TreeGen_ClusterB2_0 Vertex Module' parsing error: expected `(`, found ","
┌─ wgsl:138:31
│
138 │ return fract(sin(dot(vec2f, vec2<f32>(12.9898, 78.233)) * 43758.5453));
│ ^ expected `(`
…where vec2f
appears to be permitted in Chrome. I'm not sure that this is standard behavior, though, so this is either (1) a bug in both the application and Chrome in permitting it, or (2) Firefox needs to accept this. Not sure which yet, but I'll investigate!
Blocks: webgpu-apps
Severity: -- → S3
Comment 3•1 month ago
|
||
Aha, figured it out; we're not implementing shadowing of built-in types yet in WGSL:
fn random(vec2f: vec2<f32>) -> f32 {
return fract(sin(dot(vec2f, vec2<f32>(12.9898, 78.233)) * 43758.5453));
}
You need to log in
before you can comment on or make changes to this bug.
Description
•