-
Notifications
You must be signed in to change notification settings - Fork 30
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
DirectX is required to compile to SPIR-V #111
Comments
Not really sure how you expect to compile HLSL to SPIR-V without DXC, the compiler that compiles HLSL to SPIR-V. |
Okay, it just seems kind of counter-intuitive to require something related to DirectX to compile shader code for Vulkan. |
You could always use GLSL and a compiler like glslc to produce SPIR-V. You aren't required to use HLSL or SDL_shadercross. |
That's a good point. However, I solved it by running the command-line tool through Docker. |
I built SDL_shadercross locally using this command:
As you can see, I disabled DXC as I in this early stage of development of the project I am working on, I am only interested in compiling my program on Linux and running SDL_GPU with the Vulkan backend.
I have this function:
When the function is called, I get this output:
I would expect something like "Your source is null" instead.
I also tried this:
Then I got this result:
So it seems like the command line tool has the same problem.
The text was updated successfully, but these errors were encountered: