This repository has been archived by the owner. It is now read-only.

Provide an official way to get real parameter name based on fragment parameter name. #22

yufeih opened this Issue Dec 29, 2010 · 0 comments


None yet
1 participant

yufeih commented Dec 29, 2010

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 (, 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 (


Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.