Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 3.84 KB

File metadata and controls

50 lines (36 loc) · 3.84 KB

D3D12 Raytracing Samples

This collection of samples act as an introduction to DirectX Raytracing (DXR). The samples are divided into tutorials and advanced samples. Each tutorial sample introduces a few new DXR concepts. Advanced samples demonstrate more complex techniques and applications of raytracing. We will be adding more samples in the coming future, so check back. In addition, you can find more DXR samples tutorials at Nvidia's DXR samples Github.

The samples are implemented using both DXR and D3D12 Raytracing Fallback Layer APIs. This is purely for demonstration purposes to show API differences. Real-world applications will implement only one or the other. The Fallback Layer uses DXR if a driver and OS supports it. Otherwise, it falls back to the compute pipeline to emulate raytracing. Developers aiming for wider HW support should target the Fallback Layer.

Getting Started

Tutorial Samples

This sample demonstrates how to setup a raytracing pipeline and render a triangle in screen space.

D3D12 Raytracing Hello World GUI

This sample demonstrates how to do ray generation for a dynamic perspective camera and calculate simple diffuse shading for a cube from a dynamic point light.

D3D12 Raytracing Hello World GUI

This sample demonstrates how to implement procedural geometry using intersection shaders and shows usage of more complex shader table layouts and multiple ray types.

D3D12 Raytracing Procedural Geometry GUI

Advanced Samples

This sample demonstrates integration of the Fallback Layer in the MiniEngine's Model Viewer and several sample uses of raytracing.

D3D12 Raytracing Mini Engine

Requirements

  • Visual Studio 2017 with the Windows 10 Fall Creators Update SDK
  • Fallback Layer requires:
    • Windows 10 with the Fall Creators Update or higher.
    • Dx12 GPU with a driver that has retail DXIL support.
  • DirectX Raytracing requires:
    • Windows 10 with the April 2018 update with DXR SDK overlay binaries.
    • Dx12 gpu with a compatible DirectX Raytracing driver.
      • Nvidia: Volta or higher with 397.31+ driver.
      • Other vendors - please consult the vendor you’re working with for HW and driver availability.
  • Enable Developer Mode or sideload DXIL.dll from the latest Windows SDK to accompany the compiler.
  • DXR SDK overlay binaries - download DirectXRaytracingBinariesV1.2.zip from https://github.com/Microsoft/DirectX-Graphics-Samples/releases and copy all the contents to Samples/Desktop/D3D12Raytracing/tools/x64.

Known limitations

  • NV 397.31+ drivers do not properly support compute Fallback Layer on Nvidia Volta. Samples have artifacts and/or scenes miss altogether. Use the recommended DXR / driver based raytracing mode of samples on this configuration instead.

Feedback and Questions

We welcome all feedback, questions and discussions about DXR and the Fallback Layer at DirectX Raytracing forums.