Home » Samples »

DepthBoundsTest11 DirectX® 11 SDK Sample

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.

The depth bounds test functionality is accessed through the AMD GPU Services (AGS) library. 

AMD GPU Services (AGS) Library

The AMD GPU Services (AGS) library provides software developers with the ability to query AMD GPU software and hardware state information that is not normally available through standard operating systems or graphics APIs.

Requirements

  • 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.
  • Visual Studio® 2012, Visual Studio® 2013, or Visual Studio® 2015.

You may also be interested in...

If slide decks are what you’re after, you’ll find 100+ of our finest presentations here. Plus there’s a handy list of our product manuals!

Developer guides

Browse our developer guides, and find valuable advice on developing with AMD hardware, ray tracing, Vulkan, DirectX, UE4, and lots more.

Words not enough? How about pictures? How about moving pictures? We have some amazing videos to share with you!

The home of great performance and optimization advice for AMD RDNA™ 2 GPUs, AMD Ryzen™ CPUs, and so much more.

Product Blogs

Our handy product blogs will help you make good use of our tools, SDKs, and effects, as well as sharing the latest features with new releases.

Publications

Discover our published publications.