Any way to send Texture/Surface to hdmi output directly?

Hi! I wonder if there are api functions to send texture2d/surface data to hdmi directly? I want to have similar to direct mode in HTC Vive/Oculus Rift. How do they operate in direct mode? Is it dx or gl?