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.
- DXR spec/documentation is available at DirectX Specs site.
This sample demonstrates how to setup a raytracing pipeline and render a triangle in screen space.
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.
This sample demonstrates how to implement procedural geometry using intersection shaders and shows usage of more complex shader table layouts and multiple ray types.
This sample modifies the Simple Lighting sample, and illustrates how to use library subobjects.
This sample implements a real-time denoiser for 1spp raytraced Ambient Occlusion. It also demonstrates a physically-based specular pathtracer implementation and dynamic geometry support.
This sample demonstrates integration of the DirectX Raytracing in the MiniEngine's Model Viewer and several sample uses of raytracing.
- Visual Studio 2019.
- Windows 10 May 2019 (18362) SDK.
- Windows 10 with the May 2019 update.
- Dx12 GPU with a compatible DirectX Raytracing driver.
- Nvidia: driver version 415 or higher.
- Other vendors - please consult the vendor you’re working with for HW and driver availability.
We welcome all feedback, questions and discussions about DXR on our discord server.





