What parts of 12-speed drivetrains are compatible between brands?
The key issues relating to compatibility is the width and spacing of the cassette sprockets (and chainrings), chain design and the design of the ramps and pins on the sprockets and rings that facilitate shifts. SRAM followed Shimano up to 11 speed but I believe they diverged at 12 speed.