Open Bug 1939153 Opened 10 months ago Updated 6 months ago

[WebGPU] https://swgpu.github.io/ doesnt work on Nightly

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://swgpu.github.io/
Click on the box
Clcik on "Utils"
Seelct any option.

AR: Nothing draws on the screen.

Error:
14:11:47.932 Uncaptured WebGPU error: Shader module creation failed: Shader validation error
14:11:47.932
Encountered one or more errors while creating shader module
14:11:47.933
WebGPU compilation info for shader module (1 error(s), 0 warning(s), 0 info)
14:11:47.933

Shader validation error: Entry point main at Vertex is invalid
┌─ :13:3

13 │ output.Position.z = 1;
│ ^^^^^^^^^^^^^^^^^ ^ naga::Expression [5]
│ │
│ naga::Expression [4]

= The type of [5] doesn't match the type stored in [4]

14:11:47.933 Uncaptured WebGPU error: Error matching ShaderStages(VERTEX) shader requirements against the pipeline, caused by: ShaderModule with '' label is invalid
14:11:47.933 Uncaptured WebGPU error: RenderPipeline with 'Skybox pipeline' label is invalid
14:11:47.933 Uncaptured WebGPU error: BindGroupLayout with '' label is invalid
14:11:47.933 Uncaptured WebGPU error: Shader module creation failed: Parsing error
14:11:47.933
Encountered one or more errors while creating shader module
14:11:47.933
WebGPU compilation info for shader module (1 error(s), 0 warning(s), 0 info)
14:11:47.933

Shader '' parsing error: no definition in scope for identifier: 'textureSampleBaseClampToEdge'
┌─ wgsl:191:10

191 │ return textureSampleBaseClampToEdge(IDS_TEXTURE, IDS_SAMPLER, textureUV + ps * offset);
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unknown identifier

14:11:47.933 Uncaptured WebGPU error: Error matching ShaderStages(FRAGMENT) shader requirements against the pipeline, caused by: ShaderModule with '' label is invalid
14:11:47.933 Uncaptured WebGPU error: RenderPipeline with 'POST pipeline' label is invalid
14:11:48.076 Uncaptured WebGPU error: In a set_pipeline command, caused by: RenderPipeline with 'POST pipeline' label is invalid
14:11:48.076 Uncaptured WebGPU error: Command encoder is locked by a previously created render/compute pass. Before recording any new commands, the pass must be ended.

Blocks: webgpu-apps
Severity: -- → S3

The type conversion issue seems to be fixed, but there is still an issue with textureSampleBaseClampToEdge not being implemented.

textureSampleBaseClampToEdge needs to be implemented, and is represented with bug 1960466.

Depends on: 1960466
You need to log in before you can comment on or make changes to this bug.