It is now mandatory to call agsDriverExtensionsDX11_CreateDevice when creating a device if the user wants to access any DX11 AMD extensions. The corresponding agsDriverExtensionsDX11_DestroyDevice call must be called to release the device and free up the internal resources allocated by the create call.
More...
It is now mandatory to call agsDriverExtensionsDX11_CreateDevice when creating a device if the user wants to access any DX11 AMD extensions. The corresponding agsDriverExtensionsDX11_DestroyDevice call must be called to release the device and free up the internal resources allocated by the create call.
◆ AGSCrossfireMode
The different modes to control Crossfire behavior.
Enumerator |
---|
AGS_CROSSFIRE_MODE_DRIVER_AFR | Use the default driver-based AFR rendering. If this mode is specified, do NOT use the agsDriverExtensionsDX11_Create*() APIs to create resources.
|
AGS_CROSSFIRE_MODE_EXPLICIT_AFR | Use the AGS Crossfire API functions to perform explicit AFR rendering without requiring a CF driver profile.
|
AGS_CROSSFIRE_MODE_DISABLE | Completely disable AFR rendering.
|
◆ agsDriverExtensionsDX11_CreateDevice()
Function used to create a D3D11 device with additional AMD-specific initialization parameters.
When using the HLSL shader extensions please note:
- The shader compiler should not use the D3DCOMPILE_SKIP_OPTIMIZATION (/Od) option, otherwise it will not work.
- The shader compiler needs D3DCOMPILE_ENABLE_STRICTNESS (/Ges) enabled.
- Parameters
-
[in] | context | Pointer to a context. This is generated by agsInitialize |
[in] | creationParams | Pointer to the struct to specify the existing DX11 device creation parameters. |
[in] | extensionParams | Optional pointer to the struct to specify DX11 additional device creation parameters. |
[out] | returnedParams | Pointer to struct to hold all the returned parameters from the call. |
◆ agsDriverExtensionsDX11_DestroyDevice()
AMD_AGS_API AGSReturnCode agsDriverExtensionsDX11_DestroyDevice |
( |
AGSContext * |
context, |
|
|
ID3D11Device * |
device, |
|
|
unsigned int * |
deviceReferences, |
|
|
ID3D11DeviceContext * |
immediateContext, |
|
|
unsigned int * |
immediateContextReferences |
|
) |
| |
Function to destroy the D3D11 device and its immediate context.
This call will also cleanup any AMD-specific driver extensions for D3D11.
- Parameters
-
[in] | context | Pointer to a context. |
[in] | device | Pointer to the D3D11 device. |
[out] | deviceReferences | Optional pointer to an unsigned int that will be set to the value returned from device->Release(). |
[in] | immediateContext | Pointer to the D3D11 immediate device context. |
[out] | immediateContextReferences | Optional pointer to an unsigned int that will be set to the value returned from immediateContext->Release(). |