Does XSplit Gamecaster work with all desktop games?

To spare you the technical jargon, the short answer would be “Yes!”.

XSplit Gamecaster has support for most modern non-Flash-based PC games*.

*PC games running on DirectX (9-12) and OpenGL, including some DirectX 8 games.