Note, while widely apparent in appnotes, forums and practical engineering coffee tables, "inverting buck" is a misnomer. This topology is more formally called "buck-boost", using this term you'll find it in literature:
https://en.wikipedia.org/wiki/Buck%E2%80%93boost_converterIt can decrease or increase the magnitude of voltage.
Yes, buck becomes buck-boost if you just change the ground reference label. Yes, it's really the same topology.
One reason for confusion is that you can simply use a controller/regulator IC that is
usually used for buck, to implement this inverting buck-boost circuit.
Using the same principal components - two switches (one of which can be a diode if bidirectional/regenerative (swapping in/out) operation is not required), one inductor, and filter capacitors - can't be arranged in too many different functional topologies. You'll see buck, boost and buck-boost are all very closely related.