Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change shader parser to use AST or WGSL directly #740

Open
guusw opened this issue Jul 24, 2023 · 0 comments
Open

Change shader parser to use AST or WGSL directly #740

guusw opened this issue Jul 24, 2023 · 0 comments
Assignees

Comments

@guusw
Copy link
Member

guusw commented Jul 24, 2023

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.

@guusw guusw self-assigned this Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant