AMD GPU Services (AGS)
Functions
Depth Bounds Test

API for enabling depth bounds testing. More...

Functions

AMD_AGS_API AGSReturnCode agsDriverExtensionsDX11_SetDepthBounds (AGSContext *context, ID3D11DeviceContext *dxContext, bool enabled, float minDepth, float maxDepth)
 Function used to set the depth bounds test extension. More...
 

Detailed Description

API for enabling depth bounds testing.

Function Documentation

◆ agsDriverExtensionsDX11_SetDepthBounds()

AMD_AGS_API AGSReturnCode agsDriverExtensionsDX11_SetDepthBounds ( AGSContext *  context,
ID3D11DeviceContext *  dxContext,
bool  enabled,
float  minDepth,
float  maxDepth 
)

Function used to set the depth bounds test extension.

Parameters
[in]contextPointer to a context
[in]dxContextPointer to the DirectX device context. If this is to work using the non-immediate context, then you need to check support. If nullptr is specified, then the immediate context is assumed.
[in]enabledWhether to enable or disable the depth bounds testing. If disabled, the next two args are ignored.
[in]minDepthThe near depth range to clip against.
[in]maxDepthThe far depth range to clip against.