Closed Bug 1911496 Opened 1 year ago Closed 6 months ago

Many of WebGPU Unleashed's playgrounds fails to compile shaders w/o automatic type conversion

Categories

(Core :: Graphics: WebGPU, defect)

defect

Tracking

()

RESOLVED FIXED

People

(Reporter: ErichDonGubler, Unassigned)

References

(Blocks 2 open bugs)

Details

No description provided.
Summary: WebGPU Unleashed's `Text Rendering` playground fails to compile shaders → WebGPU Unleashed's `Text Rendering`, `Billboard` playgrounds fails to compile shaders
Summary: WebGPU Unleashed's `Text Rendering`, `Billboard` playgrounds fails to compile shaders → Many of WebGPU Unleashed's playgrounds fails to compile shaders w/o automatic type conversion
Blocks: webgpu-unleashed
No longer blocks: webgpu-apps

Many are textureSampleLevel (I am not sure whether that is expected to be addressed immediately by the function database, or may be a more complicated case). mega_texture is pow.

gaussian_splatting_5 is about case selectors, https://github.com/gfx-rs/wgpu/issues/7225. It works in a local build with https://github.com/gfx-rs/wgpu/pull/7250, but is slow, so I noted it in https://bugzilla.mozilla.org/show_bug.cgi?id=1911493#c6.

mega texture is now:

Shader validation error: Entry point fs_main at Fragment is invalid
   ┌─ :54:12
   │
54 │     return vec4(1.0,0.0,0.0,1.0);
   │            ^^^^^^^^^^^^^^^^^^^^^ instructions after return
   │
   = There are instructions after `return`/`break`/`continue`

gaussian_splatting_5 now runs.
Billboard still fails with:

Shader validation error: Entry point fs_main at Fragment is invalid
   ┌─ :34:12
   │
34 │     return textureSampleLevel(t_diffuse, s_diffuse, in.tex_coords, 0);
   │            ^^^^^^^^^^^^^^^^^^ naga::ir::Expression [5]
   │
   = Expression [5] is invalid
   = Sample level (exact) type [4] has an invalid type

The textureSampleLevel issue is bug 1952980 / https://github.com/gfx-rs/wgpu/issues/7488.

I filed bug 1960406 / https://github.com/gfx-rs/wgpu/issues/7536 for the other.

(These bugs are now linked as blockers of the main WebGPU unleashed issue, bug 1911503.)

Depends on: 1960406
No longer depends on: 1960406

Closing this issue, as the symptoms of this specific bug are closed.

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