The DepthBoundsTest11 sample shows how to use the Depth Bounds driver extension. Depth Bounds Test is a feature on AMD Radeon™ HD 7000 series cards and later. It checks to see if the current depth values are within a certain range (bounds). Drawing is allowed for pixels where the depth is in range, and culled for depths outside the bounds. Note that the comparison is made with the current depth values in the depth buffer, not the depth value of the pixel to be written. The sample demonstrates a performance improvement you can get with this feature when using deferred rendering.
Release Notes
Initial release on GitHub.
Prerequisites
- AMD Radeon™ GCN-based GPU (HD 7000 series or newer)
- 64-bit Windows 7 (SP1 with the Platform Update), Windows 8.1, or Windows 10
- Microsoft Visual C++ 2012 Redistributable to run the binary (DepthBoundsTest11_v1.2_binary.zip)
- See
depthboundstest11\redist
for installer, if needed
- See
- Visual Studio 2012, Visual Studio 2013, or Visual Studio 2015 to build from source
- Visual Studio is not needed if you just want to run the binary (DepthBoundsTest11_v1.2_binary.zip)