public ShaderUniformType GetUniformType(int index) { ShaderUniformType result; int uniformType = PsmShaderProgram.GetUniformType(this.handle, index, out result); if (uniformType != 0) { Error.ThrowNativeException(uniformType); } return(result); }