public int FindAttribute(string name) { int attribute; int errorCode = PsmShaderProgram.FindAttribute(this.handle, name, out attribute); if (errorCode != 0) { Error.ThrowNativeException(errorCode); } return(attribute); }