RenderPipelineShaders
RenderPipelineShaders copied to clipboard
RPSL explorer can't compile files
Using Visual Studio on Windows, whenever I try to load an uncompiled .rpsl file, I get the following error:
Failed to compile RPSL 'rps_hlslc/rps-hlslc.exe "${PROJECT_DIR}\my_file.rpsl" -od ""${PROJECT_DIR}\\tmp"" -m my_file -O3 -rps-target-dll -rps-bc -cbe=0
Turns out this is because of the following line from rpsl_explorer.hpp
:
rpsHlslcCmdLine << "rps_hlslc/rps-hlslc.exe \"" << pendingFileName << "\" -od \"" << tmpDir << "\" -m "
<< moduleName << " -O3 -rps-target-dll -rps-bc -cbe=0";
Changing the line accordingly for windows fixes the issue, but will most likely not work for Linux:
rpsHlslcCmdLine << "rps_hlslc\\rps-hlslc.exe \"" << pendingFileName << "\" -od " << tmpDir << " -m "
<< moduleName << " -O3 -rps-target-dll -rps-bc -cbe=0";
This does not happen is the file was already compiled, as the explorer fetches the already compiled version instead. This might be why the issue went unnoticed