How does Shader compilation work? #7325
chris-clark-serverless
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Reading a bit about the naga portion of this project, and I had a few questions.
Is a wgsl shader transpiled to spirv, glsl, and the others?
Is this what the wgsl consortium intended? I ask because I'm trying to do my own compiling of a wgsl shader, and I realized I have no idea how any of this works, and no one really seems to have an implementation except for here.
How does "compilation" work for those vendor specific languages? Do you just give the gpu the glsl file, and the gpu returns an id? Does it do the actual compilation? Are gpus actually interpretting those files, and no compilation happens?
I have so many questions! Thank you for looking over this post. If there are any resources for someone like me to look into, that would be really helpful.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions