Step 2: Integrating and Installing AGS into a Visual Studio Project
AMD GPU Services (AGS) Library provides developers with access to specialized AMD driver features for DirectX 11 (DX11) that are not available through standard APIs. AMD GPUOpen 1. Download and Prerequisites You can download the latest SDK from the official AGS GitHub repository Hardware & Software Requirements: AMD Radeon GCN or RDNA-based GPU (HD 7000 series or newer). Windows 7 (SP1), 8.1, 10, or 11 (64-bit). Visual Studio 2017 or newer is recommended. Radeon Software Crimson ReLive Edition 16.12.1 or later. AMD GPUOpen 2. Installation & Project Setup
Access technology like AMD FreeSync , GPU utilization metrics , and Asynchronous Compute (where supported). 1. AGS Driver Extensions Download (DX11) ags driver extensions dx11 init download install
bin/ : Contains dynamic link libraries ( amd_ags_x64.dll ) required at runtime. Step 2: Install and Configure AGS in Your Project
AGSReturnCode result = agsDriverExtensionsDX11_Init(g_agsContext); if (result != AGS_SUCCESS) // Driver does not support the extensions. Fall back to standard DX11. return false; Step 2: Integrating and Installing AGS into a
To use AMD extensions, the AGS library must be initialized before creating the standard DirectX 11 device. The library initialization process verifies driver support and returns a context pointer used for subsequent hardware queries. Step 1: Include the Header #include #include "amd_ags.h" Use code with caution. Step 2: Declare the Context and Configuration Variables
// Initialize the AGS library AGSReturnCode rc = agsInitialize(AGS_MAKE_VERSION(AGS_SDK_MAJOR_VERSION, AGS_SDK_MINOR_VERSION, AGS_SDK_PATCH_VERSION), nullptr, &agsContext, &gpuInfo); Windows 7 (SP1), 8
Check the g_gpuInfo.driverVersion string during initialization. If a user runs an outdated Radeon driver package, specific hardware intrinsics may cause unexpected device resets or unstable rendering behavior. Warn users if their driver version falls below your project's tested baseline. Proper Order of Deinitialization
Queries multi-GPU (CrossFire) configurations accurately.
Before calling any DirectX initialization code, you must initialize the library using agsInitialize .
Initializing AGS within a DirectX 11 application is straightforward. It is designed to work alongside the existing ID3D11Device . Prerequisites: A machine with an AMD Radeon GPU.