API for initialization, cleanup, HDR display modes and Crossfire GPU count.
More...
API for initialization, cleanup, HDR display modes and Crossfire GPU count.
◆ AGSDriverVersionResult
The result returned from agsCheckDriverVersion.
Enumerator |
---|
AGS_SOFTWAREVERSIONCHECK_OK | The reported Radeon Software Version is newer or the same as the required version.
|
AGS_SOFTWAREVERSIONCHECK_OLDER | The reported Radeon Software Version is older than the required version.
|
AGS_SOFTWAREVERSIONCHECK_UNDEFINED | The check could not determine as result. This could be because it is a private or custom driver or just invalid arguments.
|
◆ agsCheckDriverVersion()
Helper function to check the installed software version against the required software version.
- Parameters
-
- Returns
- The result of the check.
◆ agsDeInitialize()
Function used to clean up the AGS library.
- Parameters
-
[in] | context | Pointer to a context. This function will deallocate the context from the heap. |
◆ agsGetVersionNumber()
◆ agsInitialize()
Function used to initialize the AGS library.
agsVersion must be specified as AGS_CURRENT_VERSION or the call will return AGS_INVALID_ARGS. Must be called prior to any of the subsequent AGS API calls. Must be called prior to ID3D11Device or ID3D12Device creation.
- Note
- The caller of this function should handle the possibility of the call failing in the cases below. One option is to do a vendor id check and only call agsInitialize if there is an AMD GPU present.
-
This function will fail with AGS_NO_AMD_DRIVER_INSTALLED if there is no AMD driver found on the system.
-
This function will fail with AGS_LEGACY_DRIVER in Catalyst versions before 12.20.
- Parameters
-
[in] | agsVersion | The API version specified using the AGS_CURRENT_VERSION macro. If this does not match the version in the binary this initialization call will fail. |
[in] | config | Optional pointer to a AGSConfiguration struct to override the default library configuration. |
[out] | context | Address of a pointer to a context. This function allocates a context on the heap which is then required for all subsequent API calls. |
[out] | gpuInfo | Optional pointer to a AGSGPUInfo struct which will get filled in for all the GPUs in the system. |
◆ agsSetDisplayMode()
Function used to set a specific display into HDR mode.
- Note
- Setting all of the values apart from color space and transfer function to zero will cause the display to use defaults.
-
Call this function after each mode change (switch to fullscreen, any change in swapchain etc).
-
HDR10 PQ mode requires a 1010102 swapchain.
-
HDR10 scRGB mode requires an FP16 swapchain.
-
Freesync HDR scRGB mode requires an FP16 swapchain.
-
Freesync HDR Gamma 2.2 mode requires a 1010102 swapchain.
-
Dolby Vision requires a 8888 UNORM swapchain.
- Parameters
-