Giovanni Mascellani (@giomasce) commented about libs/vkd3d-shader/dxbc.c:
return ret; }
+ if (shader_desc->is_dxil) + { + if ((ret = vkd3d_shader_sm6_parser_create(compile_info, message_context, shader_desc, parser)) < 0)
My feeling is that we shouldn't accept a SM6 shader if the user specified a SM4 input. We should provide a new `VKD3D_SHADER_SOURCE_DXBC_DXIL` value in `enum vkd3d_shader_source_type` and accept a SM6 shader if that value was specified. Out of convenience, we could also add something like `VKD3D_SHADER_SOURCE_DXBC`, which would allow any DXBC shader to be accepted. And possibly generalize it even further in order to autodetect SM1 too. I don't know if this would be useful for something. -- https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/37#note_12015