Generify enough to work on all render passes