Why would it be difficult? There are explicit shader semantics to specify output position.
In fact, Qualcomm's documentation spells this out: https://docs.qualcomm.com/nav/home/overview.html?product=160...