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

Can the Circle compiler generate GLSL shader code? #4

Open
jarble opened this issue Dec 19, 2020 · 4 comments
Open

Can the Circle compiler generate GLSL shader code? #4

jarble opened this issue Dec 19, 2020 · 4 comments

Comments

@jarble
Copy link

jarble commented Dec 19, 2020

It seems that the Circle compiler generates SPIR-V modules from C++ source code. Is this compiler able to generate GLSL shader source code instead of SPIRV?

If Circle doesn't have this feature, it might be possible to compile these shaders to GLSL using SPIRV-Cross.

@seanbaxter
Copy link
Owner

I only emit SPIR-V. Agree about SPIR-Cross probably working. Do you have a use case for wanting GLSL instead of SPIRV?

@jarble
Copy link
Author

jarble commented Dec 20, 2020

I want to use the Circle compiler to generate shaders for WebGL, which currently doesn't support SPIR-V.

@seanbaxter
Copy link
Owner

Interesting. Let me think about this. There's probably something that can be done.

@FROL256
Copy link

FROL256 commented Jan 27, 2021

Probably SPIRV-Cross can be an option?
https://chromium.googlesource.com/external/github.com/KhronosGroup/SPIRV-Cross/+/refs/heads/travis-windows/README.md

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

3 participants