-
Notifications
You must be signed in to change notification settings - Fork 63
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
Applicability to other C-like languages? #10
Comments
If those languages require a compliant C99 preprocessor then that will work, I believe opencl does specify a C99 preprocessor, but that doesn't mean an implementation maybe fully compliant. If the languages are llvm-based its very likely so. |
I believe earlier versions of GLSL did not include the
which sounds somewhat ambiguous to me. Updated: |
Yea, you can try to run the |
I will need to investigate if I can capture the Preprocessor output. Also note: Be aware that most shader languages are currently expected to be compiled primarily at runtime rather than build time until intermediate cross-GPU shader formats like SPIR-V become widely utilized. |
I was wondering if anyone has investigated if some or all of these work on other C-based languages that include support for a similar preprocessor. (I would like to use something like this for explicit loop-unrolling given that the compilers for these languages lack much of the optimization capabilities of modern C compilers.)
I’m thinking specifically of:
These are basically very simplified subsets of C/C++ for writing GPU shaders.
The text was updated successfully, but these errors were encountered: