Attaching ShaderCompileWorker input file
When I run (or when UE4Editor runs):
./ShaderCompileWorker …/…/Intermediate/Shaders/WorkingDirectory/1565/5/ 1565 5 WorkerInputOnly.in WorkerOutputOnly.out -communicatethroughfile -Multiprocess
I get ‘Bad hlslcc header found! Missing ‘#’!’ error.
Attaching generated shader source from GlslBackend.cpp - syntax error is in line 4 from ‘;’ character
I hope this will make clear where the problem is and allow you to debug it or at least confirm it.
WorkerInputOnly.txt should be placed in Engine/Intermediate/Shaders/WorkingDirectory/1565/5/WorkerInputOnly.in
and the command should be run from Engine/Binaries/Linux