Decouple it from the shell implementation and introduce specialised shaders for various SHM buffer types.