Remember your ideal gas law.
$$ P V = n R T $$
You have the temperature and desnity as variables. Temperature is in the equation. Volume is just the size of the object you are considering. Density is just $ \rho =\frac{ n}{ V}$. So pressure is not independent. You can pick two of them. Which two you pick will depend on the context of the particular problem you are interested in.
Now in a relativistic system the equation of state will not be so simple as the ideal gas law. It will depend on many different things. For example, if you increase the temperature and density you may allow certain reactions to move forward, and your system may move over into a new phase. The value of $n$ may change radically, or the types of particles around may suddenly change. Or you may need to specify the density in terms of partial densities of each species of particle.
And if you are dealing with stellar masses (as you need to be if you are studying nucleosynthesis) you start to get things like gravity being very important. And in things like a supernova you get whacky things like shockwaves and drastic fluxes of neutrinos and so on. These all make the equation of state very complicated.
But in the usual case you will have some function of temperature and density that gives you the pressure. In some circumstances it might be convenient to choose pressure and temperature, for example. Or pressure and density. But you usually get to choose only two of the three.