mellinoe / ShaderGen

Proof-of-concept library for generating HLSL, GLSL, and Metal shader code from C#,
MIT License
497 stars 56 forks source link

ShaderGen.Build does not generate any shader #101

Open TJYSunset opened 4 years ago

TJYSunset commented 4 years ago

Environment

ShaderGen/ShaderGen.Build 1.2.0-beta3 from nuget.org Windows 10 Pro 18362.418 (1903) .NET Core SDK 3.0 JetBrains Rider 2019.3

Description

I was trying to use ShaderGen.Build to build my shaders, but it didn't generate anything in bin. No MSBuild messages were shown. I did spot ShaderGen files in obj, but _sggeneratedfiles.txt was empty.

Reproducing

Here's a minimal repro project zipped with artifacts generated by my build. Shader copied from veldrid-raytracer.

Foo.zip

mellinoe commented 4 years ago

Hi @TJYSunset . Unfortunately, I don't have the time to work on this project any longer, and it has been superceded for the most part by Veldrid.SPIRV (not in spirit, but for practical uses). The easiest way (but still not easy) to figure out what's going wrong here is to build the project from scratch and pass ShaderGen.App the same parameters that the MSBuild target does (you can see in the logs when it is calling ShaderGen.App).