Fully implemented saving and loading of shader resources to the EGM
format.