Open Bug 1907411 Opened 1 year ago Updated 1 year ago

WebGPU: <https://shinylasers.com/playground>'s default example does not run

Categories

(Core :: Graphics: WebGPU, defect)

defect

Tracking

()

People

(Reporter: ErichDonGubler, Unassigned)

References

(Blocks 1 open bug, )

Details

WebGPU on Firefox currently does not render this page's usage of the WebGPU, and without console output relevant to WebGPU when running. In Chrome, this shows a color gradient that changes over time.

To wit, the default contents of the playground shader that is currently loaded is:

// MIT License

// Copyright (c) 2022 shinylasers.com

// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:

// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.

// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

struct VertexOutput {
    @builtin(position) pos: vec4<f32>,
};

struct DefaultInput {
    res: vec2<f32>,
    time: f32,
};

@group(0) @binding(0)
var<uniform> si: DefaultInput;

@fragment
fn fs_main(in: VertexOutput) -> @location(0) vec4<f32> {
    let li = in.pos.xy/si.res;
    let r = li.x * abs(sin(si.time * 0.1));
    let g = li.y * abs(cos(si.time * 0.2));
    return vec4<f32>(r, g , 1.0, 1.0);
}

Setting severity to S4 but, as it's blocking webgpu-triage will leave priority unset for now

Severity: -- → S4
You need to log in before you can comment on or make changes to this bug.