'Implementation' (to use the term very loosely) of P1, P2.1, and P3.1 of shaders 2