AMD FidelityFX™ Hybrid Shadows background

AMD FidelityFX™ Hybrid Shadows sample

Rasterized with ray tracing

The AMD FidelityFX™ Hybrid Shadows sample shows a way to combine traditional rasterized shadows with ray tracing to create fast high quality shadows.

Supports:

  • DirectX® 12
  • Vulkan®

Part of the AMD FidelityFX™ SDK

AMD FidelityFX SDK components

Download the latest version - v1.1.4

This release of the AMD FidelityFX™ SDK adds the following features:

  • Additions to the API and fixes for issues discovered.

Features

This sample showcases the following AMD FidelityFX™ Hybrid Shadows functionality:

  • Configurable shadow cascades.
  • Ray traced shadows.
  • Hybrid shadows.
    • Rejecting lit pixels.
    • Rejecting shadowed pixels.
    • Ray interval reduction.
  • AMD FidelityFX™ Shadow Denoiser.

Image comparison

Cascades
Hybrid
Hybrid shadows
Debug rays

Debug view

Left side: Shows an overlay where the tiles that have any ray tracing in them are written out with pure red and green.

Right side: Shows the shadow map.

A pixel (part of a tile) that needs ray tracing, but will not fire a ray.
A pixel that will fire a ray.

Requirements

  • A graphics card with DirectX® 12 and DXR 1.1 support.
  • Windows® 10 (64-bit recommended).
  • Visual Studio® 2019 with Visual C++® and the Windows® 10 SDK installed.

Version history

  • The AMD FidelityFX™ SDK 1.1.4 is a patch release that includes additions to API and fixes for issues discovered with AMD FSR 3.1.0 to 3.1.3.

  • Exposed 4 new tunings to reduce AMD FSR upscaler ghosting in newly disoccludded pixels or highly reactive pixels.

  • Changed the default value of fMinDisocclusionAccumulation to -0.333 (from equivalent of 0.333 in AMD FSR 3.1.3) to reduce disocclusion ghosting.

  • Added ffxQueryGetProviderVersion to get version info from created ffx-api context.

  • Exposed ffxDispatchDescFrameGenerationPrepareCameraInfo as a linked struct. It is a required input to AMD FSR 3.1.4 and onwards for best quality.

  • Added frame generation debug checker support.

  • Dropped unused interpolation command lists if frame generation callback fails, to fix infinite wait at swapchain destruction.

  • General fixes to Vulkan® Frame Interpolation Swapchain.

  • General framework fixes and updates.

  • Frame pacing debug line added to Vulkan®.

  • Added new FFX error when create frame interpolation swapchain results in E_ACCESSDENIED in DX12 due to overlay or capture software.

  • Enabled support for frame interpolation swapchain on Windows® 10 1909 and potentially earlier versions.

  • Fixed flipped disocclusion factor from previous and current backbuffer.

  • Fixed HDR mode issues in Cauldron sample.

  • Fixed MSVC C compile errors including ffx-api.

  • The AMD FidelityFX™ SDK 1.1.4 also updates the following to address select issues:

  • AMD FidelityFX™ Brixelizer GI 1.0.1

  • AMD FidelityFX™ Breadcrumbs 1.0.1

Other AMD FidelityFX effects

Related news and technical articles

Related videos