You write the UDP payload onto PCI-Express, then the NIC writes it onto the wire as an Ethernet frame.
Obviously you're limited by PCI-Express bandwidth then Ethernet bandwidth. There is also a bit of jitter tied to the underlying protocols but those delays aren't really significant for most applications.
Meanwhile, TCP can queue data indefinitely, based on how the other end is sending acks and the size of the window.