FidelityFX Stochastic Screen-Space Reflections

alt text

This sample demonstrates the use of both FidelityFX Stochastic Screen-Space Reflections (SSSR) and the FidelityFX Denoiser.

For details on the techniques that underpin Stochastic Screen-Space Reflections or denoising you can refer to their respective technique documentation.

Requirements

  • Windows

  • DirectX(R)12

  • Vulkan(R)

UI elements

The sample contains various UI elements to help you explore the techniques it demonstrates. The table below summarizes the UI elements and what they control within the sample.

Element name

Value

Description

Draw Screen Space Reflections

On/Off

Show or hide the reflections when rendering the scene.

Show Reflection Target

On/Off

If checked, the render target containing the reflections will be shown on screen.

Show Intersection Results

On/Off

If checked, the raw reflection data (without denoising applied) will be shown on screen.

Target frame time in ms

0..?

Simulates a slower rendering speed. This allows temporal reprojection to be assessed.

Max. Traversal Iterations

1..?

Caps the maximum number of lookups that are performed from the depth buffer hierarchy. Most rays should terminate after approximately 20 lookups.

Min. Traversal Occupancy

0..32

Exit the core loop early if less than this number of threads are running.

Most Detailed Level

0..10

The most detailed MIP map level in the depth hierarchy. Perfect mirrors always use 0 as the most detailed level.

Depth Buffer Thickness

0..1

Bias for accepting hits. Larger values can cause streaks, lower values can cause holes.

Roughness Threshold

0..1

Regions with higher values won’t spawn rays.

Temporal Stability

0..1

Controls the accumulation of history values. Higher values reduce noise, but are more likely to exhibit ghosting artefacts.

Temporal Variance Threshold

0..1

Luminance differences between history results will trigger an additional ray if they are greater than this threshold value.

Enable Variable Guided Tracing

On/Off

If checked, a ray will be spawned on pixels where a temporal variance is detected.

Samples Per Quad

1, 2, 4

The minimum number of rays per quad. Variance guided tracing can increase this up to a maximum of 4.

Setting up FidelityFX Stochastic Screen-Space Reflections

The sample contains a dedicated Render Module for SSSR which creates the context and controls its lifetime. See the quick start guide in the Stochastic Screen-Space Reflections technique documentation for more details on how to integrate the SSSR context in your engine.

A final pass called apply_reflections is created which takes the output of the SSSR algorithm and composites it on top of the directly lit scene. It’s worth noting that the output render target for the SSSR algorithm is automatically created by Cauldron as described in SSSR’s render module config file.

Sample controls and configurations

For sample controls, configuration, and FidelityFX Cauldron Framework UI element details, see Running the samples .

See also

Related pages

  • Visit the FidelityFX SDK product page for download links and more information.

Looking for more documentation on GPUOpen?

AMD GPUOpen software blogs

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

GPUOpen Manuals

Don’t miss our manual documentation! And if slide decks are what you’re after, you’ll find 100+ of our finest presentations here.

AMD GPUOpen Performance Guides

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

Getting started: AMD GPUOpen software

New or fairly new to AMD’s tools, libraries, and effects? This is the best place to get started on GPUOpen!

AMD GPUOpen Getting Started Development and Performance

Looking for tips on getting started with developing and/or optimizing your game, whether on AMD hardware or generally? We’ve got you covered!

AMD GPUOpen Technical blogs

Browse our technical blogs, and find valuable advice on developing with AMD hardware, ray tracing, Vulkan®, DirectX®, Unreal Engine, and lots more.

Find out more about our software!

AMD GPUOpen Effects - AMD FidelityFX technologies

Create wonder. No black boxes. Meet the AMD FidelityFX SDK!

AMD GPUOpen Samples

Browse all our useful samples. Perfect for when you’re needing to get started, want to integrate one of our libraries, and much more.

AMD GPUOpen developer SDKs

Discover what our SDK technologies can offer you. Query hardware or software, manage memory, create rendering applications or machine learning, and much more!

AMD GPUOpen Developer Tools

Analyze, Optimize, Profile, Benchmark. We provide you with the developer tools you need to make sure your game is the best it can be!