imageworks/OpenShadingLanguage — pull request #89 by lgritz (2011-11-04 22:27:44+00:00)
Title: Review: have a way to name shader groups, and debugging aids

Allow the app to pass a name to ShaderGroupBegin to name the group.

Add two new debugging attributes:

1. debug_groupname - when set, in conjunction with debug=1, debugs ONLY the named group.

2. only_groupname - when set, ONLY optimizes and JITs the named group, all others will act like empty shaders.

These are very helpful to me when debugging possible OSL bugs involving scenes with -- I swear I am not making this up -- thousands of shader groups and several hundred thousand shader instances.