Fixed shader generation with nested usage of inputs (process code until no further input substitution is possible)