Open Beyley opened 4 days ago
Thank you for the suggestion. It's possible to add another warning along the same lines as the general warning about spirv_1_0 that would help point users to specify "-g0" in case their implementation does not support the "SPV_KHR_non_semantic_info".
For reference, the general warning about spirv_1_0 I'm referring to is this one:
(0): warning 50011: Slang's SPIR-V backend only supports SPIR-V version 1.3 and later. Use -emit-spirv-via-glsl
option to produce SPIR-V 1.0 through 1.2.
It seems like we should emit a warning when -g and spirv < 1.3 is specified, and then remove the -g option.
Other than that, the shader does work perfectly, even though spirv_1_0 through slang's direct SPIRV output is not officially supported at the moment.
Passing
-g0
fixes the problem. Perhaps there should be a dedicated warning/note thatKHR_shader_non_semantic_info
is required vulkan-side when compiling with debug info? I'm attempting to use Slang with SDL_gpu, which always uses Vulkan 1.0 and does not define that extension.