I want to sort sprites by layer depth (i.e. SpriteSortMode.BackToFront) but also sort them by SpriteSortMode.Immediate (which my understanding is the last thing to be drawn gets drawn on top of everything else).
The reason I want this behaviour is so that if I draw two sprites on the same layer depth the one I drew last gets put on top. Right now it's just random what gets rendered on top and what doesn't (I assume it's something similar to z fighting).
I've tried this:
SpriteBatch.Begin(SpriteSortMode.Immediate|SpriteSortMode.BackToFront, BlendState.AlphaBlend);
But it didn't work...