Closed Bug 1877154 Opened 1 year ago Closed 4 months ago

WebGPU demo (https://gnikoloff.github.io/webgpu-raytracer/) doesnt draw anything in Nightly

Categories

(Core :: Graphics: WebGPU, defect, P3)

defect

Tracking

()

RESOLVED FIXED

People

(Reporter: mayankleoboy1, Unassigned)

References

(Blocks 1 open bug, )

Details

Attachments

(1 file)

Go to https://gnikoloff.github.io/webgpu-raytracer/

AR: Nothing is drawn on the screen.
ER: It should
Chrome can run this demo

Attached file about:support
Severity: -- → S2

Looks like this is currently blocked on shaders not compiling due to the usage of the standard @must_use function attribute, which we don't support yet (😅). Filed bug 1878314 to represent this.

WebGPU is unreleased tech. Dropping Severity to S3 to remove from org tracking.

Severity: S2 → S3
Priority: -- → P1
Priority: P1 → P3

Looks like this issue has moved on from bug 1878314, and is now firmly blocked on bug 1829879:

Uncaptured WebGPU error: Shader module creation failed: Parsing error
Encountered one or more errors while creating shader module
WebGPU compilation info for shader module (1 error(s), 0 warning(s), 0 info)

Shader '' parsing error: automatic conversions cannot convert elements of `i32` to `f32`
   ┌─ wgsl:28:5
   │
28 │     (*camera).imageHeight = select((*camera).imageHeight, 1, (*camera).imageHeight < 1);
   │     ^^^^^^^^^^^^^^^^^^^^^   ^^^^^^ this expression has type i32
   │     │                        
   │     a value with elements of type f32 is required here


Uncaptured WebGPU error: Error matching ShaderStages(VERTEX) shader requirements against the pipeline, caused by: ShaderModule with '' label is invalid
Encountered one or more errors while creating shader module
WebGPU compilation info for shader module (1 error(s), 0 warning(s), 0 info)

Shader '' parsing error: automatic conversions cannot convert elements of `i32` to `f32`
    ┌─ wgsl:358:5
    │
358 │     (*camera).imageHeight = select((*camera).imageHeight, 1, (*camera).imageHeight < 1);
    │     ^^^^^^^^^^^^^^^^^^^^^   ^^^^^^ this expression has type i32
    │     │                        
    │     a value with elements of type f32 is required here


Uncaptured WebGPU error: ShaderModule with '' label is invalid
Uncaptured WebGPU error: RenderPipeline with '' label is invalid
Uncaptured WebGPU error: BindGroupLayout with '' label is invalid
Uncaptured WebGPU error: ComputePipeline with '' label is invalid
Uncaptured WebGPU error: In a set_pipeline command, caused by: ComputePipeline with '' label is invalid
Uncaptured WebGPU error: Command encoder is locked by a previously created render/compute pass. Before recording any new commands, the pass must be ended.
Uncaptured WebGPU error: Command encoder is invalid
Uncaptured WebGPU error: CommandBuffer with '' label is invalid

Function database; select

As Andy hinted at, correct type conversion for select is (now the only!) part of the remaining scope for blockers in WebGPU for this page. wgpu#6443/bug 1829879 didn't resolve this, but some follow-up work at bug 1960453 will.

Depends on: 1960453

WFM now, with dependencies satisfied! Woot!

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: