Skip to content

Commit 659f697

Browse files
committed
Add naga section in changelog
1 parent b04cae6 commit 659f697

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,20 @@ Bottom level categories:
4242

4343
### Major Changes
4444

45+
46+
#### WGSL Top-Level `let` is now `const`
47+
48+
All top level constants are now declared with `const`, catching up with the wgsl spec.
49+
50+
`let` is no longer allowed at the global scope, only within functions.
51+
52+
```diff
53+
-let SOME_CONSTANT = 12.0;
54+
+const SOME_CONSTANT = 12.0;
55+
```
56+
57+
See https://github.com/gfx-rs/naga/blob/master/CHANGELOG.md#v011-2023-01-25 for smaller shader improvements.
58+
4559
#### Surface Capabilities API
4660

4761
The various surface capability functions were combined into a single call that gives you all the capabilities.

0 commit comments

Comments
 (0)