You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is a place in my fragment shader where the error happens (lines 186-188):
fFlipNormal*=IN.bIsFrontFace?1.0f:-1.0f; // line 186half3x3 mTangentToWS=half3x3(half3(1,0,0),half3(0,1,0),half3(0,0,1)); // line 187
mTangentToWS=half3x3(IN.vTangent.xyz,IN.vBinormal.xyz,IN.vNormalWS.xyz*fFlipNormal); // line 188
Here is the output of glslValidator utitliy:
rostislavd@rostislavd-VirtualBox:~/Projects/glslang/build$ install/bin/glslangValidator -D -V ../../Shaders/illumZPassPS.frag
../../Shaders/illumZPassPS.frag
ERROR: ../../Shaders/illumZPassPS.frag:187: 'half3x3': unknown variable
ERROR: ../../Shaders/illumZPassPS.frag:187: ';': Expected
../../Shaders/illumZPassPS.frag(187): error at column 22, HLSL parsing failed.
ERROR: 3 compilation errors. No code generated.
SPIR-V is not generated for failed compile or link
DirectX11 shader compiler compiles it just fine. Also I hadn't found that the feature is absent for HLSL parsing in issue #362
The text was updated successfully, but these errors were encountered:
This should work now with 96f6552. FXC also complains if you try to use 4 half3 arguments, so I assume the title is a typo. The code example only has 3, and my testing shows this works now.
Here is a place in my fragment shader where the error happens (lines 186-188):
Here is the output of
glslValidator
utitliy:DirectX11 shader compiler compiles it just fine. Also I hadn't found that the feature is absent for HLSL parsing in issue #362
The text was updated successfully, but these errors were encountered: