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

Add support for external shader translator #483

Open
GuillermoAmbar opened this issue Feb 10, 2025 · 0 comments
Open

Add support for external shader translator #483

GuillermoAmbar opened this issue Feb 10, 2025 · 0 comments

Comments

@GuillermoAmbar
Copy link

An example is to use glslang program to translate a OpenGL or OpenGL ES shader to spir-v, then generate a OpenGL ES shader source from spir-v shader by using spirv-cross program.

I have tested to convert OpenGL 3.3 shaders to OpenGL ES 3.1 and 3.2 by adding an optional plugin loader on shader source loader function.

It is not ready for use because on my test plugin I call glslang program to generate a spir-v file, and then call spirv-cross to generate opengl es shader code from spir-v source, it uses an intermediate cached file on disk, I speed up things by creating a little 16 MB ramdisk for temporary store spirv generated files.

I will try to use glslang and spir-v libraries for create a functional plugin, however time for that is undeterminated.

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

1 participant