Skip to content

GLSL flavors #5726

Closed Answered by expipiplus1
sbaer asked this question in Q&A
Dec 2, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

There's currently no way to do target different versions of GLSL or GLSL ES with Slang.

We only officially support 450, however depending on which features you use, the output can be compatible with older versions (for example abstaining from using double precision floats, or tesselation shaders).

If there are any minor issues preventing the shaders from being used, then we can certainly take a look (or accept PRs), but any major implementation for older GLSL versions isn't currently on the roadmap.

I've never had to do it, but one other option might be to output spirv and then use spirv-cross to generate older glsl, obviously ymmv with that :)

Replies: 1 comment 1 reply

Comment options

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

Answer selected by expipiplus1
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