Enable to compile HLSL to lib profiles
gongminmin opened this issue · comments
Is your feature request related to a problem? Please describe.
Instead of compiling the whole shader, compile fragments and link them later.
Describe the solution you'd like
Accept the input of HLSL fragments, compile to lib_6_0 profile. Then link them into one DXIL or SPIR-V before converting to other shading languages.
Describe alternatives you've considered
Concatenate HLSL strings to one, then compiling it.
Due to relocatable SPIR-V module is not supported by Dxc (microsoft/DirectXShaderCompiler#2633), we have to postpone the SPIR-V part.