If you look for a specific triangle wave generator in Spice ... I’m not suggesting your roll your own buck converter for a commercial design. Just go buy a controller — there are plenty ...
Waveforms such as pulse and pulse-Doppler ... Integrated power supply ICs to implement compact and efficient buck converters for factory automation, 5G and IoT. The Professional Guide to Debugging ...