ShaderConductor
ShaderConductor copied to clipboard
ShaderConductor is a tool designed for cross-compiling HLSL to other shading languages
**Describe the bug** ``` [1176/1181] Building CXX object Source/Core/CMakeFiles/ShaderConductor.dir/ShaderConductor.cpp.o FAILED: Source/Core/CMakeFiles/ShaderConductor.dir/ShaderConductor.cpp.o /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DSHADER_CONDUCTOR_SOURCE -DShaderConductor_EXPORTS -I/Users/douglaslassance/Desktop/WIP/ShaderConductor/Include -I/Users/douglaslassance/Desktop/WIP/ShaderConductor/Build/Ninja-osx-clang-x64-Release/External/DirectXShaderCompiler/include -I/Users/douglaslassance/Desktop/WIP/ShaderConductor/External/DirectXShaderCompiler/include -I/Users/douglaslassance/Desktop/WIP/ShaderConductor/External/SPIRV-Cross -I/Users/douglaslassance/Desktop/WIP/ShaderConductor/External/SPIRV-Tools/include -std=c++1z -fms-extensions -Wno-language-extension-token -W -Wall -Werror -march=core2 -msse2 -Wno-missing-field-initializers -m64 -DNDEBUG...
The dynamic libraries on Mac using rpath mechanisms to load dependency libraries, so is important to be in mind when you create a dylib, you must specify correct ID, dependencies...
Note that this PR is on top of 69, 70, 71, and 72. Please review them first. This change needs to be rebased after those PRs go in. After this...
Note that this PR is on top of 69, 70, and 71. Please review them first. This change needs to be rebased after those PRs go in.
Refactor the test code for future extension. Note that this PR is on top of https://github.com/microsoft/ShaderConductor/pull/69 and https://github.com/microsoft/ShaderConductor/pull/70. Please review them first.
Add VS2022 support. Note that this PR is based on https://github.com/microsoft/ShaderConductor/pull/69 . Please review that one first. This change needs to be rebased.
**Arch Linux x86_64 - gcc 11.0.0 x86_64-pc-linux-gnu** ShaderConductor.hpp uses `uint*_t` types but hasn't included `stdint.h` ShaderConductor.cpp has `std::atomic m_ref = 0;` which gives: `error: use of deleted function 'std::atomic::atomic(const std::atomic&)'`...
The `hostArch` returned on M1 Macs is `arm64` in lowercase therefore a lowercase comparison will handle all cases.
**Describe the bug** run ShaderConductorTest ,and crash on LinkTest **To Reproduce** 1. vs2019 on Win10 Debug and x64 build 2. commit id: 30a77c78d24fa08f4fe5fc4428f10dbfc92717a6 branch: maset 3. start up with ShaderConductorTest...