Closed Bug 1880743 Opened 2 years ago Closed 4 months ago

[webgpu] Demo at https://conorpo.github.io/marching-cubes-webgpu/ does not draw anything on the screen

Categories

(Core :: Graphics: WebGPU, defect)

defect

Tracking

()

RESOLVED FIXED

People

(Reporter: mayankleoboy1, Unassigned)

References

(Blocks 2 open bugs, )

Details

Attachments

(1 file)

Go to https://conorpo.github.io/marching-cubes-webgpu/

11:25:47.179 Context created successfully index-73244411.js:349:38962
11:25:47.327 Shader module creation failed: Shader validation error
11:25:47.327
Encountered one or more errors while creating shader module "Debug Noise Shader"
11:25:47.327
WebGPU compilation info for shader module "Debug Noise Shader" (1 error(s), 0 warning(s), 0 info)
11:25:47.327

Shader validation error:
┌─ Debug Noise Shader:16:13

16 │ let p = pos[i];
│ ^^^^^^ naga::Expression [3]

11:25:47.327 Error matching ShaderStages(VERTEX) shader requirements against the pipeline, caused by: Shader module is invalid
11:25:47.329
Encountered one or more errors while creating shader module "Marching Cubes Shader"
11:25:47.329
WebGPU compilation info for shader module "Marching Cubes Shader" (1 error(s), 0 warning(s), 0 info)
11:25:47.329

Shader validation error:
┌─ Marching Cubes Shader:82:45

82 │ if (isoValues[0] > settings.isoValue) { cubeIndex |= 1; }
│ ^^^^^^^^^^^^^^ naga::Expression [78]

11:25:47.390 Error matching shader requirements against the pipeline, caused by: Shader module is invalid
11:25:47.507 Resized canvas to 1493x840 index-73244411.js:349:39462
11:25:47.516 In a set_pipeline command, caused by: Compute pipeline Id(1,1,d3d12) is invalid
11:25:47.516 Uncaught (in promise) TypeError: v.drawIndexedIndirect is not a function
d https://conorpo.github.io/marching-cubes-webgpu/assets/index-73244411.js:349
index-73244411.js:349:40701
11:25:50.243
Unknown property ‘-moz-transition’. Declaration dropped. marching-cubes-webgpu:1:258
11:25:50.243
Unknown property ‘-moz-transition’. Declaration dropped. marching-cubes-webgpu:1:679
11:25:50.243
Unknown property ‘-moz-transition’. Declaration dropped. marching-cubes-webgpu:1:1377
11:25:50.243
Unknown property ‘-moz-transition’. Declaration dropped. marching-cubes-webgpu:1:1517
11:25:50.243
Unknown property ‘-moz-transition’. Declaration dropped. marching-cubes-webgpu:1:258
11:25:50.243
Unknown property ‘-moz-transition’. Declaration dropped. marching-cubes-webgpu:1:679
11:25:50.243
Unknown property ‘-moz-transition’. Declaration dropped. marching-cubes-webgpu:1:1377
11:25:50.243
Unknown property ‘-moz-transition’. Declaration dropped. marching-cubes-webgpu:1:1517

Attached file about:support
Flags: needinfo?(egubler)
Severity: -- → S3
Flags: needinfo?(egubler)

Profile with webgpu preset logging: https://share.firefox.dev/3VsyMor

Error in webconsole:
12:41:18.672 injected firefox content.js:142:11
12:41:18.708 Context created successfully index-73244411.js:349:38962
12:41:18.908 Uncaptured WebGPU error: Shader module creation failed: Shader validation error
12:41:18.908
Encountered one or more errors while creating shader module "Marching Cubes Shader"
12:41:18.908
WebGPU compilation info for shader module "Marching Cubes Shader" (1 error(s), 0 warning(s), 0 info)
12:41:18.908

Shader validation error: Entry point main at Compute is invalid
┌─ Marching Cubes Shader:82:45

82 │ if (isoValues[0] > settings.isoValue) { cubeIndex |= 1; }
│ ^^^^^^^^^^^^^^ naga::Expression [77]

= Expression [77] is invalid
= Operation InclusiveOr can't work with [76] (of type Scalar(Scalar { kind: Uint, width: 4 })) and [75] (of type Scalar(Scalar { kind: Sint, width: 4 }))

12:41:18.937 Uncaptured WebGPU error: ShaderModule with 'Marching Cubes Shader' label is invalid
12:41:18.987 Resized canvas to 1493x840 index-73244411.js:349:39462
12:41:19.000 Uncaptured WebGPU error: In a set_pipeline command, caused by: ComputePipeline with 'Marching Cubes Pipeline' label is invalid
12:41:19.000 Uncaught (in promise) TypeError: v.drawIndexedIndirect is not a function
d https://conorpo.github.io/marching-cubes-webgpu/assets/index-73244411.js:349
index-73244411.js:349:40701
12:41:34.602
Unknown property ‘-moz-transition’. Declaration dropped. marching-cubes-webgpu:1:258
12:41:34.602
Unknown property ‘-moz-transition’. Declaration dropped. marching-cubes-webgpu:1:679
12:41:34.602
Unknown property ‘-moz-transition’. Declaration dropped. marching-cubes-webgpu:1:1377
12:41:34.602
Unknown property ‘-moz-transition’. Declaration dropped. marching-cubes-webgpu:1:1517
12:41:34.602
Unknown property ‘-moz-transition’. Declaration dropped. marching-cubes-webgpu:1:258
12:41:34.602
Unknown property ‘-moz-transition’. Declaration dropped. marching-cubes-webgpu:1:679
12:41:34.602
Unknown property ‘-moz-transition’. Declaration dropped. marching-cubes-webgpu:1:1377
12:41:34.602
Unknown property ‘-moz-transition’. Declaration dropped.

Latest error messages indicate a blocker on bug 1829879, which is unsurprising.

The error I currently see is Uncaught (in promise) TypeError: v.drawIndexedIndirect is not a function.

Depends on: 1930972

WFM now!

Status: NEW → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: