Register specification support

I'm using this to output sampler information so that you can do glUniform1i automatically based on (manually allocated) sampler slots in the shader code.