Implemented per-pass GPU state modification.