Skip to content
Branch: master
Find file History
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
Data Small changes & fixes (#435) Aug 1, 2018
Include Update d3dx12.h. Update Miniengine to 17763 SDK. Updated readmes. (#472) Oct 2, 2018
src Add 'export' keyword for lib_6_3 compatibility (#471) Oct 1, 2018
contributing.md
developerguide.md
readme.md

readme.md

D3D12 Raytracing Fallback Layer

The D3D12 Raytracing Fallback Layer is a library that emulates the DirectX Raytracing (DXR) API on devices without native driver/hardware support.

[Windows October 2018 Update] The Fallback Layer emulation runtime works with the final DXR API in Windows October 2018 update. The emulation feature proved useful during the experimental phase of DXR design. But as of the first shipping release of DXR, the plan is to stop maintaining this codebase. The cost/benefit is not justified and further, over time as more native DXR support comes online, the value of emulation will diminish further. That said, the code functionality that was implemented is left in place for any further external contributions or if a strong justification crops up to resurrect the feature. We welcome external pull requests on extending or improving the Fallback Layer codebase.

Overview

MiniEngine Screenshot The library is built as a wrapper around the DirectX 12 API and has distinct but similar interfaces from the DirectX Raytracing (DXR) API. The library also redirects to the DXR API when driver support exists, so developers do not need to branch code to support the DXR API simultaneously.

The goal of the Fallback Layer is to enable developers to hit the ground running with the new DXR API without the need for a GPU with hardware support and a DXR capable variant of Windows. As of the GDC release, the Fallback Layer is in an early prototype stage and is a limited substitute for a DXR driver, particularly in terms of performance. A future goal of this project is to tune the Fallback to be performant enough for real-world scenarios in lieu of a DXR driver for small-scale raytracing techniques.

Building the Fallback Layer

In order to build and run the Fallback Layer you will need:

  • Windows 10 with the Fall Creators Update or higher.
  • Visual Studio 2017 version 15.8.4 or higher.
  • Windows 10 Fall Creators Update SDK or higher.
  • A graphics card with retail DXIL capabilities.
  • DXIL.dll should be pulled from the latest Windows SDK to accompany the compiler or enable Developer mode.
  • DXR Fallback Compiler - download DirectXRaytracingBinariesV1.5.zip and copy all the contents to Samples/Desktop/D3D12Raytracing/tools/x64.

API Samples

After cloning the project, you can open up D3D12Raytracing.sln in Samples/Desktop/D3D12Raytracing/src. There are several projects that demonstrate basic usage of the Fallback Layer/DXR API including a larger demo integrated with the MiniEngine. More details in the readme

Developing with the Fallback Layer

For details on developing an app using the Fallback Layer, please consult the developer guide

Driver requirements

  • Retail support for DXIL
  • Resource Binding Tier 3

Contributing

See contributing

Feedback

We would love to hear how you're using the Fallback Layer! We're also interested in any form of feedback you may have:

  • How many rays per sec would make the Fallback Layer usable in practice for your scenario? Real-time or offline?
  • Are there functional issues blocking adoption of the Fallback Layer? Are the ways the interface could be less obstructive?
  • Bugs/Issues using the Fallback Layer?

Please feel free to reach out at DirectX Raytracing forums.

You can’t perform that action at this time.