Various classes of Vajrayana literature developed as a result of royal courts sponsoring both Buddhism and Saivism.