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
Is there any trick on how to compile shaders outside of the BGFX project directory (got problems on a m1 Mac mini)? I was trying to run the following command on a shader:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is there any trick on how to compile shaders outside of the BGFX project directory (got problems on a m1 Mac mini)? I was trying to run the following command on a shader:
../bgfx/.build/osx-arm64/bin/shadercRelease -f shader/v_simple.sc -o v_simple.bin --platform osx --type vertex --profile metal --varyingdef shader/varying.def.sc --verbose -i ../bgfx/src
and it failed with the message:
ERROR: 0:11: 'u_modelViewProj' : unknown variable
ERROR: 0:11: 'function call arguments' : Expected
ERROR: 0:11: 'assignment expression' : Expected
ERROR: 0:11: 'declaration' : Expected
(11): error at column 44, HLSL parsing failed.
ERROR: 5 compilation errors. No code generated.
If I copy my shaders into the examples/01-cubes folder (or any examples folder) and run the same command, it works like a charm.
What am I missing?
Beta Was this translation helpful? Give feedback.
All reactions