Open Bug 1939154 Opened 3 months ago Updated 2 months ago

[WebGPU] https://gavinyork.github.io/zephyr3d/#/en/gltf?id=gltf-viewer doesnt work with webgpu renderer

Categories

(Core :: Graphics: WebGPU, defect)

defect

Tracking

()

People

(Reporter: mayankleoboy1, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug, )

Details

Go to https://gavinyork.github.io/zephyr3d/#/en/gltf?id=gltf-viewer
Let it load
From the demo, select "webgpu" as the device.

Error:

14:16:18.085 injected firefox content.js:142:11
14:17:05.546 WebGPU device features: lil-gui.esm.js:2388:2
14:17:05.546 - depth-clip-control lil-gui.esm.js:2388:2
14:17:05.546 - depth32float-stencil8 lil-gui.esm.js:2388:2
14:17:05.546 - texture-compression-bc lil-gui.esm.js:2388:2
14:17:05.546 - timestamp-query lil-gui.esm.js:2388:2
14:17:05.546 - indirect-first-instance lil-gui.esm.js:2388:2
14:17:05.546 - rg11b10ufloat-renderable lil-gui.esm.js:2388:2
14:17:05.546 - bgra8unorm-storage lil-gui.esm.js:2388:2
14:17:05.546 - float32-filterable lil-gui.esm.js:2388:2
14:17:05.548
Object { }
lil-gui.esm.js:2388:2
14:17:05.991 Uncaptured WebGPU error: Shader module creation failed: Parsing error
14:17:05.992
Encountered one or more errors while creating shader module
14:17:05.992
WebGPU compilation info for shader module (1 error(s), 0 warning(s), 0 info)
14:17:05.992

Shader '' parsing error: abstract floating-point values cannot be automatically converted to integers
┌─ wgsl:161:112

161 │ let shadowVertex: vec4<f32> = vec4<f32>(dot(ch_shared_uniform_block_0_0.Z_UniformGlobal.light.shadowMatrices[i32((0.0 * 4.0) + 0.0)],vec4<f32>(worldPos,1.0)),dot(ch_shared_uniform_block_0_0.Z_UniformGlobal.light.shadowMatrices[i32((0.0 * 4.0) + 1.0)],vec4<f32>(worldPos,1.0)),dot(ch_shared_uniform_block_0_0.Z_UniformGlobal.light.shadowMatrices[i32((0.0 * 4.0) + 2.0)],vec4<f32>(worldPos,1.0)),dot(ch_shared_uniform_block_0_0.Z_UniformGlobal.light.shadowMatrices[i32((0.0 * 4.0) + 3.0)],vec4<f32>(worldPos,1.0)));
│ ^^^^^^^^^^^^^^^^^^^^^^ see msg

14:17:05.992
Line 161:112 - i32((0.0 * 4.0) + 0.0)

Shader '' parsing error: abstract floating-point values cannot be automatically converted to integers
┌─ wgsl:161:112

161 │ let shadowVertex: vec4<f32> = vec4<f32>(dot(ch_shared_uniform_block_0_0.Z_UniformGlobal.light.shadowMatrices[i32((0.0 * 4.0) + 0.0)],vec4<f32>(worldPos,1.0)),dot(ch_shared_uniform_block_0_0.Z_UniformGlobal.light.shadowMatrices[i32((0.0 * 4.0) + 1.0)],vec4<f32>(worldPos,1.0)),dot(ch_shared_uniform_block_0_0.Z_UniformGlobal.light.shadowMatrices[i32((0.0 * 4.0) + 2.0)],vec4<f32>(worldPos,1.0)),dot(ch_shared_uniform_block_0_0.Z_UniformGlobal.light.shadowMatrices[i32((0.0 * 4.0) + 3.0)],vec4<f32>(worldPos,1.0)));
│ ^^^^^^^^^^^^^^^^^^^^^^ see msg

lil-gui.esm.js:2388:2
createShaderModule lil-gui.esm.js:2388
14:17:05.992 Uncaptured WebGPU error: Error matching ShaderStages(FRAGMENT) shader requirements against the pipeline, caused by: ShaderModule with '' label is invalid
14:17:06.494 ShiftLeft lil-gui.esm.js:2388:2
14:17:06.494 ControlLeft lil-gui.esm.js:2388:2
14:17:06.494 Escape lil-gui.esm.js:2388:2
14:17:06.496 Uncaptured WebGPU error: In a set_pipeline command, caused by: RenderPipeline with '11:12-0-2-0-0:12-0-2-0-1:rgba16float:depth24plus-stencil8:1:triangle-list::::::1' label is invalid
14:17:06.496 Uncaptured WebGPU error: Command encoder is locked by a previously created render/compute pass. Before recording any new commands, the pass must be ended.
14:17:06.496 Uncaptured WebGPU error: CommandBuffer with '' label is invalid
14:17:09.101
Encountered one or more errors while creating shader module
14:17:09.101
WebGPU compilation info for shader module (1 error(s), 0 warning(s), 0 info)
14:17:09.101

Shader '' parsing error: abstract floating-point values cannot be automatically converted to integers
┌─ wgsl:231:112

231 │ let shadowVertex: vec4<f32> = vec4<f32>(dot(ch_shared_uniform_block_0_0.Z_UniformGlobal.light.shadowMatrices[i32((0.0 * 4.0) + 0.0)],vec4<f32>(worldPos,1.0)),dot(ch_shared_uniform_block_0_0.Z_UniformGlobal.light.shadowMatrices[i32((0.0 * 4.0) + 1.0)],vec4<f32>(worldPos,1.0)),dot(ch_shared_uniform_block_0_0.Z_UniformGlobal.light.shadowMatrices[i32((0.0 * 4.0) + 2.0)],vec4<f32>(worldPos,1.0)),dot(ch_shared_uniform_block_0_0.Z_UniformGlobal.light.shadowMatrices[i32((0.0 * 4.0) + 3.0)],vec4<f32>(worldPos,1.0)));
│ ^^^^^^^^^^^^^^^^^^^^^^ see msg

14:17:09.102
Line 231:112 - i32((0.0 * 4.0) + 0.0)

Shader '' parsing error: abstract floating-point values cannot be automatically converted to integers
┌─ wgsl:231:112

231 │ let shadowVertex: vec4<f32> = vec4<f32>(dot(ch_shared_uniform_block_0_0.Z_UniformGlobal.light.shadowMatrices[i32((0.0 * 4.0) + 0.0)],vec4<f32>(worldPos,1.0)),dot(ch_shared_uniform_block_0_0.Z_UniformGlobal.light.shadowMatrices[i32((0.0 * 4.0) + 1.0)],vec4<f32>(worldPos,1.0)),dot(ch_shared_uniform_block_0_0.Z_UniformGlobal.light.shadowMatrices[i32((0.0 * 4.0) + 2.0)],vec4<f32>(worldPos,1.0)),dot(ch_shared_uniform_block_0_0.Z_UniformGlobal.light.shadowMatrices[i32((0.0 * 4.0) + 3.0)],vec4<f32>(worldPos,1.0)));
│ ^^^^^^^^^^^^^^^^^^^^^^ see msg

lil-gui.esm.js:2388:2
createShaderModule lil-gui.esm.js:2388
14:17:09.519 Uncaptured WebGPU error: In a set_pipeline command, caused by: RenderPipeline with '38:8-0-1-0-0:12-0-2-0-1:12-0-2-0-2:rgba16float:depth24plus-stencil8:1:triangle-list::::::1' label is invalid
14:17:10.369 Uncaptured WebGPU error: In a execute_bundle command, caused by: RenderBundle with '' label is invalid
14:17:12.174 Uncaptured WebGPU error: Not enough memory left.
14:17:12.174 Uncaptured WebGPU error: In a set_bind_group command, caused by: BindGroup with '' label is invalid

Blocks: webgpu-apps
Severity: -- → S3
Depends on: 1829879
You need to log in before you can comment on or make changes to this bug.