Closed chaoticbob closed 3 months ago
What happened: "ps_6_0" was set for a vertex shader being compiled (which for some reason is handled differently than slangc using "ps_6_0"), this case was (which should be fixed) not handled in Slang correctly.
The solution: Incompatible profile with entry-point should have error'd.
I was using the API calls below before to compile shaders at runtime without a problem. Sorry, I don't remember which commit exactly. However, when I tried to windows release asset from slang-2024.1.30, I got a crash. I checked out the latest source from the repo to make sure it wasn't an issue with the release asset.
When compiling the psmain from the shader below, I'm getting a crash in this stack:
Can I get a sanity check to see if I'm missing something? I checked using
slangc
and the shader compiles with the psmain entry point without an issue.Shader
API Function