Gravity is just a function of mass. Well, actually, since you posted this in the relativity forum, it's more accurate to say it depends on the stress energy. But for ordinary, nonrelativistic matter, the stress-energy is dominated by the mass-energy.
So, it doesn't matter what the star is made of; just how massive it is. You also warp space, but not very much because you aren't very massive. The distribution of mass in a star can affect the gravitational field some, but stars are fairly close to spherical so the shape is not very important.