DirectX is a collection of application programming interfaces (APIs) developed by Microsoft for handling tasks related to multimedia, especially game programming and video. It is a core component of the Windows operating system and is used by many games and other applications to display graphics, play sound, and handle input from devices such as keyboards and mice.
There are several ways to check if you have DirectX installed on your computer. Using the DirectX Diagnostic Tool is the official and the most convenient approach.