mellinoe / ShaderGen

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

Bug Fixed - inheritance check in resource check #103

Open onehundredfeet opened 4 years ago

onehundredfeet commented 4 years ago

When the main entry points are checked for resource usage, they only check for containment in the current class. I added a simple fix to walk up the inheritance tree to find a match

there may be better ways to do this, feel free to re-write, but this technically fixes it.

onehundredfeet commented 4 years ago

My Git knowledge seems to have failed me. I have also rolled a second bug fix into this pull request somehow.

The second fix enables the ability for the shader set to be automatically generated with just a VertexShader and FragmentShader. There was logic in there, but it was stale.

onehundredfeet commented 4 years ago

Yay! Light is green!