Join GitHub today
Provide an official way to get real parameter name based on fragment parameter name. #22
Stitchup will turn the parameter name in a fragment file into a mingled name in the final effect file, so there is no official way for either the runtime or buildtime to know the real parameter name based on fragment parameter name. E.g. the "world" parameter in vertexpassthru fragment ended up with some name like "vertexpassthru_0_world", so there is no way to set the parameter unless you happened to know it beforehand.
Because stitchup don't have any runtime type, I would propose an API to the content pipeline, it would be something like "string StitchedEffectProcessor.GetParameterName(int fragment, string fragmentParameterName);"
By the way, I am the developer of Engine Nine (http://nine.codeplex.com/), and I recently used stitchup to dynamically generate effects at build time, you can check out the wrapped LinkedEffect in my implementation to see how stitichup is been used any the problems I am facing (http://nine.codeplex.com/SourceControl/changeset/view/54225#1083736).