ShaderParam - initial draft with corrections

Applied corrections from @cmr and @csherratt, also added the generated code.
It is unclear what you mean by 'the other side'. Could you improve the wording?