Shader Compilation fails and corrupt .sln when Generics changed #667
Description
using xenko 2.1.2.1 i'd consider this a quite serious issue because writing shaders is one of the most important things when developing game graphics. reproduce:
- create project Graphics/MaterialShader and build -> game starts normally
- open solution in visual studio 2015
- remove any generic input from any shader
- recompile -> error:
[C:/Dev/vvvv/vvvv/vvvv50/examples/Xenko/MaterialShader2/MaterialShader2/MaterialShader2.Game/Effects/ComputeColorWave.xksl(4,1)]: Error: E3008: The class [ComputeColorWave] could not be instanciated because the number of required generic does not match the number of passed generics.
[C:/Dev/vvvv/vvvv/vvvv50/examples/Xenko/MaterialShader2/MaterialShader2/MaterialShader2.Game/Effects/ComputeColorWave.xksl(4,1)]: Error: E3008: The class [ComputeColorWave] could not be instanciated because the number of required generic does not match the number of passed generics.
Error: BuildStep EffectCompile [XenkoForwardShadingEffect] failed.
[C:/Dev/vvvv/vvvv/vvvv50/examples/Xenko/MaterialShader2/MaterialShader2/MaterialShader2.Game/Effects/ComputeColorWave.xksl(4,1)]: Error: E3008: The class [ComputeColorWave] could not be instanciated because the number of required generic does not match the number of passed generics.
Error: BuildStep EffectCompile [XenkoForwardShadingEffect] failed.
EffectCompileLog(0,0): Error: Asset [EffectCompileLog] failed to compile
[C:/Dev/vvvv/vvvv/vvvv50/examples/Xenko/MaterialShader2/MaterialShader2/MaterialShader2.Game/Effects/ComputeColorWave.xksl(4,1)]: Error: E3008: The class [ComputeColorWave] could not be instanciated because the number of required generic does not match the number of passed generics.
[C:/Dev/vvvv/vvvv/vvvv50/examples/Xenko/MaterialShader2/MaterialShader2/MaterialShader2.Game/Effects/ComputeColorWave.xksl(4,1)]: Error: E3008: The class [ComputeColorWave] could not be instanciated because the number of required generic does not match the number of passed generics.
Error: BuildStep EffectCompile [XenkoForwardShadingEffect] failed.
[C:/Dev/vvvv/vvvv/vvvv50/examples/Xenko/MaterialShader2/MaterialShader2/MaterialShader2.Game/Effects/ComputeColorWave.xksl(4,1)]: Error: E3008: The class [ComputeColorWave] could not be instanciated because the number of required generic does not match the number of passed generics.
Error: BuildStep EffectCompile [XenkoForwardShadingEffect] failed.
EffectCompileLog(0,0): Error: Asset [EffectCompileLog] failed to compile
Error: BuildStep Asset build steps [EffectLogAsset:'EffectCompileLog'] (3 items) failed.
Error: BuildStep Build step list (365 items) failed.
Error: BuildStep Build step list (1 items) failed.
Error: Build finished in 735 steps. Command results: 0 succeeded, 730 up-to-date, 5 failed, 0 not triggered due to previous failure.
Error: Build failed.
Info: Generate bundles: Scan assets and their dependencies...
Info: Generate bundles: Assign assets to bundles...
Info: Generate bundles: Compress and save bundles to HDD...
Info: Generate bundles: Done
[(0,0)]: Info: RunTime 00:00:01.56
[C:\Program Files\Silicon Studio\Xenko\GamePackages\Xenko.2.1.2.1\Targets\Xenko.targets(360,5)]: Error: The command ""C:\Program Files\Silicon Studio\Xenko\GamePackages\Xenko.2.1.2.1\Bin\Windows\SiliconStudio.Assets.CompilerClient.exe" --disable-auto-compile --project-configuration "Debug" --platform=Windows --profile=Windows --project-configuration=Debug --output-path="C:\Dev\vvvv\vvvv\vvvv50\examples\Xenko\MaterialShader2\MaterialShader2\Bin\Windows\Debug\data" --build-path="C:\Dev\vvvv\vvvv\vvvv50\examples\Xenko\MaterialShader2\MaterialShader2\MaterialShader2.Windows..\Cache\data" --package-file="C:\Dev\vvvv\vvvv\vvvv50\examples\Xenko\MaterialShader2\MaterialShader2\MaterialShader2.Windows..\MaterialShader2.xkpkg" --log-pipe="net.pipe://localhost/SiliconStudio.Assets.Editor.9d688daa-e7f0-4484-9458-fc4909febad9" --verbose" exited with code 1.
- if you then remove the shader from the material, game studio seems to corrupt the .sln file
- after removing the shader from the materials displacement map the build error is:
Error: The project file could not be loaded. Data at the root level is invalid. Line 2, position 1
Activity