You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In contrast to the current system that translates shards (after compose) into WGSL source code. We can use the new shards lang (shs) ast directly to build shader sources or even directly generate naga modules.
Directly embed WGSL as shader source
WGSL code could be embedded directly into shader block and then injected into the generated shader.
This discussion was converted from issue #740 on November 20, 2025 01:17.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Various options exist
Directly using source AST
In contrast to the current system that translates shards (after compose) into WGSL source code. We can use the new shards lang (shs) ast directly to build shader sources or even directly generate naga modules.
Directly embed WGSL as shader source
WGSL code could be embedded directly into shader block and then injected into the generated shader.
Beta Was this translation helpful? Give feedback.
All reactions