The internal energy of a given mass of gas in a system depends upon
Pressure, volume and temperature of gas
Internal energy of a system depends upon only the state of the system and not on the process by which that state of system was achieved . So internal energy of a given mass of gas would depend upon the specific values of pressure, temperature and volume of gas.