I was looking at the HLSL documentation page from Khronos Group's GitHub and I was wondering if it was possible to implement their section on runtime compilation with the built in HLSL compiler for Visual Studio?
The built-in compiler runs when building the project (I'm assuming this is what runtime means here), so is it possible to compile to a .spv
instead of a .cso
using something similar to the command line input shown in the offline compilation section? I am wholly unfamiliar with the properties of the Visual Studio HLSL Compiler, so I'm not sure how I would go about doing this.