public ShaderAttributeType GetAttributeType(int index) { ShaderAttributeType result; int attributeType = PsmShaderProgram.GetAttributeType(this.handle, index, out result); if (attributeType != 0) { Error.ThrowNativeException(attributeType); } return(result); }