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