Small refacto: simplify GetValue from ShaderParam