`const` inside of a C style cast seen as invalid expression term.
Opened this issue · 0 comments
zxz41 commented
I'm currently working on some pre-existing shaders running on ps_3_0 and lower. Which are known to compile on Microsoft (R) Direct3D Shader Compiler 10.1
Currently I'm experiencing an issue where a C style cast containing const
is causing the extension to throw errors saying:
Severity Code Description
Error HLSL0022 Invalid expression term 'const'.
Error HLSL0009 Found 'const' but expected '<identifier>'.
Error HLSL0009 Found 'const' but expected ')'.
Error HLSL0009 Found 'const' but expected ')'.
Error HLSL0009 Found 'const' but expected ';'.
...
This is the line throwing the error.
worldNormal = mul3x3( modelNormal, ( const float3x3 )cModel[0] );