- Home /
Nobody even commented on this, let alone gave an answer. Clearing this inventory out of the warehouse.
What is the best way to unit test ShaderLab code?
I'm looking for a good way to unit test ShaderLab code.
The options I've considered so far are:
Put all behavior in separate files that I #include into my ShaderLab definitions and use something like HLSLUnit.
Write some insane testing framework in ShaderLab itself and do something stupid like create a new game object in a scene for each test with the appropriate test shader turning the object green or red as appropriate.
See if I can dig up a standalone compiler for ShaderLab and write a unit testing framework.
None of those are particularly appetizing, so I thought I'd reach out to the community to find something better.
Hey did you find something in the end? The url you added in the comment is broken. :)