pub fn d3d_version() -> u32
Returns the current DirectX version.
11 for DirectX 11 and 9 for legacy DirectX 9 mode.
11
9