Open Bug 1939320 Opened 10 months ago Updated 7 months ago

[WebGPU] https://codepen.io/id-emmett/pen/JjVvaGZ doesnt work in Nightly

Categories

(Core :: Graphics: WebGPU, defect)

defect

Tracking

()

People

(Reporter: mayankleoboy1, Unassigned)

References

(Blocks 1 open bug, )

Details

Go to https://codepen.io/id-emmett/pen/JjVvaGZ

Error:

10:27:10.958 Uncaptured WebGPU error: In a set_pipeline command, caused by: ComputePipeline with '' label is invalid
10:27:10.958 Uncaptured WebGPU error: Command encoder is locked by a previously created render/compute pass. Before recording any new commands, the pass must be ended.
10:27:10.958 Uncaptured WebGPU error: CommandBuffer with '' label is invalid
10:27:10.984
Encountered one or more errors while creating shader module "pbrlitshader"
10:27:10.984
WebGPU compilation info for shader module "pbrlitshader" (1 error(s), 0 warning(s), 0 info)
10:27:10.984

Shader validation error: Function [96] 'directShadowMapingIndex' is invalid
┌─ pbrlitshader:2227:5

2227 │ ╭ fn directShadowMapingIndex(light:LightData, matrix:mat4x4<f32>, depthTexIndex:i32, shadowBias:f32) -> vec4<f32>
2228 │ │ {
2229 │ │ var visibility = 1.0;
2230 │ │ var isOutSideArea:f32 = 1.0;
· │
2250 │ │ bias = clamp(bias, 0, 0.01) + -shadowBias;
│ │ ^^^^^ naga::Expression [91]
· │
2269 │ │ }
2270 │ │ return vec4<f32>(visibility, isOutSideArea, varying_shadowUV);
│ ╰────────────────────────────────────────────────────────────────────^ naga::Function [96]

= Expression [91] is invalid
= Argument [1] to Clamp as expression [89] has an invalid type.

10:27:10.984

struct Uniforms {
    matrix : array<mat4x4<f32>>
};

@group(0) @binding(1)
var<storage, read> models : Uniforms;



var<private> PI: f32 = 3.14159265359;


struct VertexAttributes{
    @builtin(instance_index) index : u32,
    @location(0) position: vec3<f32>,
    @location(1) normal: vec3<f32>,
    @location(2) uv: vec2<f32>,
    @location(3) TEXCOORD_1: vec2<f32>,




}

struct VertexOutput {
@location(0) index: f32,
@location(1) varying_UV0: vec2<f32>,
@location(2) varying_UV1: vec2<f32>,
@location(3) varying_ViewPos: vec4<f32>,
@location(4) varying_Clip: vec4<f32>,
@location(5) varying_WPos: vec4<f32>,
@location(6) varying_WNormal: vec3<f32>,
@location(7) varying_Color: vec4<f32>,

    @location(8) varying_ShadowPos: vec4<f32>,



@builtin(position) member: vec4<f32>
};

var<private> ORI_VertexOut: VertexOutput ;

fn ORI_Vert(vertex:VertexAttributes){
v…

orillusion.es.js:6046:11461
10:27:10.985
GPUCompilationInfo { messages: (1) […] }

messages: Array [ GPUCompilationMessage ]

<prototype>: GPUCompilationInfoPrototype { messages: Getter, … }
​​
constructor: function GPUCompilationInfo()
​​
messages:
​​
Symbol(Symbol.toStringTag): "GPUCompilationInfo"
​​
<get messages()>: function messages()
​​
<prototype>: Object { … }
orillusion.es.js:6046:11476
10:27:10.985 Uncaptured WebGPU error: Error matching ShaderStages(VERTEX) shader requirements against the pipeline, caused by: ShaderModule with 'pbrlitshader' label is invalid
10:27:10.985 Uncaptured WebGPU error: In a set_pipeline command, caused by: RenderPipeline with 'pbrlitshader|pbrlitshader' label is invalid

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