Bug 1921193 Comment 5 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

@huscar: I am not able to reproduce this issue using the shader source in the OP, because Firefox's WGSL shader compiler rejects it on all platforms with an error like the following:

```
Shader '' parsing error: no definition in scope for identifier: 'sqrt_point_count'
   ┌─ wgsl:19:28
   │
19 │   let stepSize = 1.0 / f32(sqrt_point_count);
   │                            ^^^^^^^^^^^^^^^^ unknown identifier
```

Can you please provide the complete shader source and WebGPU API usage in JS, and/or a link to a minimized reproducible example? The premise of your reported issue is that shaders do not emit a validation error; otherwise, you never should have succeeded in submitting a workload to the device queue. 😅
@huscar: I am not able to reproduce this issue using the shader source in the OP, because Firefox's WGSL shader compiler rejects it on all platforms with an error like the following:

```
Shader '' parsing error: no definition in scope for identifier: 'sqrt_point_count'
   ┌─ wgsl:19:28
   │
19 │   let stepSize = 1.0 / f32(sqrt_point_count);
   │                            ^^^^^^^^^^^^^^^^ unknown identifier
```

Can you please provide the complete shader source and WebGPU API usage in JS, and/or a link to a minimized reproducible example? The premise of your reported issue is that shaders do not emit a validation error; otherwise, you never should have succeeded in submitting a workload to the device queue. 😅

EDIT: Ah, I see that the OP's STR don't specify just running the shader source; will try to reproduce here on my M1 Macbook.
@huscar: I am not able to reproduce this issue using the shader source in the OP, because Firefox's WGSL shader compiler rejects it on all platforms with an error like the following:

```
Shader '' parsing error: no definition in scope for identifier: 'sqrt_point_count'
   ┌─ wgsl:19:28
   │
19 │   let stepSize = 1.0 / f32(sqrt_point_count);
   │                            ^^^^^^^^^^^^^^^^ unknown identifier
```

Can you please provide the complete shader source and WebGPU API usage in JS, and/or a link to a minimized reproducible example? The premise of your reported issue is that shaders do not emit a validation error; otherwise, you never should have succeeded in submitting a workload to the device queue. 😅

EDIT: Ah, I see that the OP's STR don't specify just running the shader source; will try to reproduce from the original projcet here on my M1 Macbook.
@huscar: I am not able to reproduce this issue using the shader source in the OP, because Firefox's WGSL shader compiler rejects it on all platforms with an error like the following:

```
Shader '' parsing error: no definition in scope for identifier: 'sqrt_point_count'
   ┌─ wgsl:19:28
   │
19 │   let stepSize = 1.0 / f32(sqrt_point_count);
   │                            ^^^^^^^^^^^^^^^^ unknown identifier
```

Can you please provide the complete shader source and WebGPU API usage in JS, and/or a link to a minimized reproducible example? The premise of your reported issue is that shaders do not emit a validation error; otherwise, you never should have succeeded in submitting a workload to the device queue. 😅

EDIT: Ah, I see that the OP's STR don't specify just running the shader source; will try to reproduce from the original project here on my M1 Macbook.

Back to Bug 1921193 Comment 5