-
-
Logging debug strings is now supported across all major backends. Given the lack of native shader debugging tools, especially for mobile platforms, it would be great to support printf style logging in…
-
https://www.w3.org/TR/WGSL/
-
### Before:
```ts
const pipeline = runtime.makeComputePipeline({
code: wgsl`${counterBuffer.asMutableStorage()} += 1;`,
});
async function increment() {
pipeline.execute();
const result = await…
-
The tests/compute/buffer-layout.slang sample contains a struct with an element of type `float2 c[2];`, and the struct is used in a constant buffer.
The corresponding WGSL member declaration is `arr…
-
Hi,
Quick question, since Chrome 125, webgpu now has subgroups, would it be possible to add native support for them using the currently available WGSL API?
See: https://developer.chrome.com/blo…
-
### Description
While working on `ShadowMapViewer` I have noticed that flat shaded objects that receive shadow produce a WGSL error which is logged in the browser console as a warning.
> Error …
-
### Typescript variant (simple)
- Import any path. Everything in it is public.
- `import * as Foo from "./a.wgsl";`
- `Foo::hi` gets desugared to foo_hi. Foo by itself is meaningless
### Typescr…
-
Issue 1 extracted from https://github.com/gpuweb/gpuweb/discussions/4750 by @jacobgorm
WGSL currently does not support `vector` >>= `scalar` operations, unlike other compound assignments such as /=…
-
wgsl now supports these, and I think they could speed up some computations.
wgsl_bindgen fails these because naga_oil, which in turn fails because of naga.
Naga uses a search-and-replace strateg…