DirectX is a collection of graphics and multimedia application programming interfaces developed by Microsoft for Windows. First released in 1995, it gives games and graphics applications direct access to hardware such as GPUs. Its 3D graphics component is Direct3D, used in versions such as Direct3D 11 (D3D11) and Direct3D 12.
DirectX became the standard graphics API for Windows PC games; Metal on Apple platforms and the cross-platform Vulkan and OpenGL serve comparable roles. In AI, Microsoft also offers DirectML, a machine learning API built on DirectX for running computations on GPUs.