Removed ztest option and added GPU state management for passes.