Skip to content
Discussion options

You must be logged in to vote

This seems mostly right, minus a couple of details that I think are important for this high-level overview.

Your diagram suggests that Naga can ingest and emit all shader languages equally. But if you examine https://github.com/gfx-rs/wgpu/tree/1bf1671ed877a6a9ccf5f1a349ec167cd28af3d7/naga#supported-end-points, you'll see that only some languages are supported frontends, with a superset of them supported as a backend. In the language of your diagram, that means not all arrows between Common IR and the other languages are actually bidirectional links.

WGSL is the most common for the web world, but we have a fair number of WGPU users using other shader languages. Yet another interesting way…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@iampi31415
Comment options

Answer selected by iampi31415
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants