DirectX是一种使用DirectDraw、DirectMusic、Direct3D等API(APIs)组合的技术。它改善了您的多媒体和游戏体验,但许多游戏甚至可能将DirectX视为先决条件。
您可以从DirectX 诊断工具(DirectX Diagnostic Tool)找到您安装的DirectX版本。本文将引导您了解如何找到和使用此工具。如果您的系统上安装了旧版本的DirectX,您可能需要更新它。
如果您对 DirectX 及其作用感到好奇,我们将提供有关(DirectX)DirectX 是什么以及它为何如此重要(what DirectX is and why it’s important)的深入指南。
在Windows中检查您的DirectX 版本(DirectX Version)
运行DirectX 诊断工具(DirectX Diagnostic Tool)可为您提供有关PC 上安装的DirectX组件和驱动程序的所有信息。(DirectX)
这是一个简单的两步过程:
- 按Win + R,键入dxdiag,然后按Enter。
- 您将看到该工具启动。您会在System Information中找到提到的DirectX 版本(DirectX Version)。
如果您使用的是Windows 10及更高版本,您的系统很可能有DirectX 12。安装操作系统会自动安装所有DirectX 12 API(APIs)。但是,如果您的系统有旧版本的DirectX ,则使用(DirectX)Windows 更新(Windows Updates)更新它相当简单。
在 Windows 上更新 DirectX
Microsoft不为最新的(Microsoft)DirectX版本提供独立包,这意味着您需要使用Windows 更新(Windows Updates)将您的DirectX更新到最新版本。
- 按Win + I启动设置。
- 选择更新和安全(Updates & Security)>检查更新(Check for Updates)。
- 让Windows检查更新。如果您的系统有更新的DirectX版本可用,它将自动下载并与系统上的其他更新一起安装。
- 安装后,重新启动您的 PC 并重新运行DirectX 诊断工具(DirectX Diagnostic Tool)以检查您的DirectX版本。
如果您在使用 Windows 更新时遇到问题(facing problems with Windows Updates),您需要先解决该问题,或者您可以在不使用 Microsoft 更新的情况下继续更新(updates without using Microsoft Update)。
(Install DirectX Runtime Libraries)为旧版 DirectX SDK(Legacy DirectX SDK)安装 DirectX 运行时库
如果尽管拥有最新的DirectX版本,您仍无法在 PC 上运行一些较旧的游戏,这可能是因为您的系统中缺少旧版DirectX SDK中的一些运行时库。(DirectX SDK)
Microsoft有一个工具可以在您的系统上安装D3DX9、D3DX10、XAudio 2.7、 XInput 1.3 、XACT和Managed DirectX 1.1。请注意,该工具不会升级您的DirectX版本;它只是从旧版DirectX SDK添加了一些运行时库。
- 下载DirectX 最终用户运行时 Web 安装程序(DirectX End-User Runtime Web Installer)。
- 按下一步(Next)并按照向导中的步骤操作。
- 安装完成后,选择完成(Finish)退出向导。
您现在应该可以运行旧游戏了。
如果您在Windows上,DirectX不是唯一的API。您还可以使用VulkanRT。
How to Find Out What Version of DirectX You Have Installed
DirectX iѕ a technologу that uses a combinаtion of APIs like DirectDraw, DirectMusic, Direct3D, etc. It improves your multimedia and gaming experience, but many games may even identify DirectX as a prerequisite.
You can find out what version of DirectX you have installed from the DirectX Diagnostic Tool. This article will walk you through how you can find and use this tool. If you have an older version of DirectX installed on your system, you may want to update it.
If you’re curious about DirectX and what it does, we have an in-depth guide on what DirectX is and why it’s important.
Check Your DirectX Version in Windows
Running the DirectX Diagnostic Tool gives you all the information about DirectX components and drivers installed on your PC.
It’s a simple, two-step process:
- Press Win + R, type dxdiag, and press Enter.
- You’ll see the tool launch. You’ll find the DirectX Version mentioned under System Information.
If you’re using Windows 10 and above, your system most likely has DirectX 12. Installing the OS automatically installs all DirectX 12 APIs. However, if your system has an older version of DirectX, it’s fairly simple to update it using Windows Updates.
Update DirectX on Windows
Microsoft doesn’t offer a stand-alone package for the latest DirectX versions, which means you’ll need to use the Windows Updates to update your DirectX to the latest version.
- Press Win + I to launch Settings.
- Select Updates & Security > Check for Updates.
- Let Windows check for updates. If there’s a newer DirectX version available for your system, it will automatically download and install along with other updates on your system.
- Once installed, reboot your PC and rerun the DirectX Diagnostic Tool to check your DirectX version.
If you’re facing problems with Windows Updates, you’ll need to fix that first, or you could just move forward with the updates without using Microsoft Update.
Install DirectX Runtime Libraries for Legacy DirectX SDK
If you’re unable to run some older games on your PC despite having the latest DirectX version, it could be because a few runtime libraries from the legacy DirectX SDK are missing from your system.
Microsoft has a tool that installs D3DX9, D3DX10, XAudio 2.7, XInput 1.3, XACT, and Managed DirectX 1.1 on your system. Note that the tool doesn’t upgrade your DirectX version; it just adds a few runtime libraries from the legacy DirectX SDK.
- Download the DirectX End-User Runtime Web Installer.
- Press Next and follow the steps in the wizard.
- Select Finish to exit the wizard once the installation completes.
You should now be able to run your older games.
If you’re on Windows, DirectX isn’t the only API. You can also use VulkanRT.