-
The WGSL specification has introduced the `enable` directive for to implementation-specific extensions (see https://www.w3.org/TR/WGSL/#enable-extensions-sec). Currently naga rejects these as an inval…
-
Currently in the subgroups proposal we have two WebGPU features, `subgroups` and `subgroups-f16`, to enable corresponding WGSL extensions `subgroups` and `subgroups_f16`.
Since WebGPU feature `subg…
-
It seems WGSL [doesn't support matrices with entries of integer type](https://www.w3.org/TR/WGSL/#matrix-types), though it [does allow vector types with integer entries](https://www.w3.org/TR/WGSL/#ve…
-
William Candillon raised a couple issues about our current approach to WGSL code construction using template strings:
- No WGSL language server features (syntax highlighting, code completion)
- Functi…
-
**Description**
When using the built-in variable `sample_mask` in a wgsl fragment shader, naga produces incorrect glsl, leading to a panic when using OpenGL.
**Repro steps**
Given the following w…
-
When I open the webpage at `https://google.github.io/tour-of-wgsl/` the code
```
@binding(0) @group(0) var frame : u32;
@vertex
fn vtx_main(@builtin(vertex_index) vertex_index : u32) -> @builtin(…
-
Should we require a statement like
`enable wgsly.2024` in the main file? As in
- Document that this is some extended WGSL
- And have a version/edition of it. Which lets us change the syntax in late…
-
### Description
I'm currently trying to port the FXAA shader to TSL. The code uses more than one `return` statement to return a color value computed in its `FxaaPixelShader()` function.
Using an `…
-
**Is your feature request related to a problem? Please describe.**
**Background - naga_oil**
I have been working on [naga_oil](https://github.com/bevyengine/naga_oil), which is a WGSL preprocessor…
-
slang-RHI needs a WebGPU back-end