-
Notifications
You must be signed in to change notification settings - Fork 61
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
sokol-shdc TODO #8
Comments
What if on error you compile the shader again with all optimizations turned off to get the line nrs? |
Good idea! |
Is it possible to publish |
It's possible (main.c would need to be replaced with a sokol_shdc.h/.c, which implements a small API to pass options but otherwise looks much like main.c). But I think the required dependencies would make this tricky / pretty big (the stuff in here would need to be linked in basically: https://github.com/floooh/sokol-tools/tree/master/ext). Also the bytecode-compilation for D3D11 and especially Metal should be removed, this is better done via sokol_gfx.h then (especially because compiling Metal bytecode involves running the metal-compiler command line tool as external process). |
I'm mostly interested in pure GLSL->HLSL, GLSL, Metal conversion and maybe shader optimization. |
Here's a quick explanation what each source file is responsible for:
You can read the main() function in main.cc from top to bottom to see the sequence of actions. |
The text was updated successfully, but these errors were encountered: