Skip to content

Question: Is GLSL -> GLSL (for opengl) ready? #1839

Answered by JCapucho
Nazariglez asked this question in Q&A
Discussion options

You must be logged in to vote

This is an hard question to answer glsl is a big language and supporting all of it takes a lot of work but naga already supports a lot so it should support most of the inputs you throw at it (if not you can always open an issue ;).

Since the front ends convert everything to the same intermediate representation the glsl output should work fine whether you use wgsl or glsl as the input.

The versions you want to use are supported both on the frontend and backend.

Veloren did revert the naga changes but this was because of a bug in spirv-cross, the backend that wgpu previously used for shader translation, that caused msl output to be broken, this was caused because the shaders naga produced t…

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by cwfitzgerald
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #1835 on April 16, 2022 10:53.