Concept
- OpenGL is a graphical API
- DirectX is a collection of many APIs. Includes Direct3D, Direct2D, Direct Compute , XAudio, XIput, and more.
Comparison
.
Includes content differences
.
DirectX mainstream version
- DirectX 11: The underlying API (assembly level) is not open and provides a unified optimized version.
- DirectX 12: It can directly call the underlying language API (assembly level), suitable for optimization by experts.
- If the optimization is not good, it is better to use DirectX 12 directly.
DirectX Function
Provides a unified driver interface for developers to develop without considering the underlying driver details .
.
Generally, interfaces are provided for display, sound, input, and network aspects .
.