microsoft / ShaderConductor

ShaderConductor is a tool designed for cross-compiling HLSL to other shading languages
MIT License
1.76k stars 251 forks source link

MacOS Monterey compilation issues #80

Open Jorgemagic opened 1 year ago

Jorgemagic commented 1 year ago

I compiled ShaderConductor on MacOS Monterey version 12.4 and I found some issues in the process.

The CMakeList.txt file set c++ version as c++1z but I needed to set c++14 because DirectXShaderCompiler had errors with deprecated code in c++17 or high. I read in the official repo in the building source section that it required c++14.

On the other hand, in Source/Core/ShaderConductor.cpp the compiler throw an error in the line 293 std::atomic m_ref = 0;

I changed for this and the error disappeared std::atomic m_ref = {0};