HOME

TheInfoList



OR:

DirectX Raytracing (DXR) is a feature introduced in
Microsoft Microsoft Corporation is an American multinational corporation and technology company, technology conglomerate headquartered in Redmond, Washington. Founded in 1975, the company became influential in the History of personal computers#The ear ...
's
DirectX Microsoft DirectX is a collection of application programming interfaces (APIs) for handling tasks related to multimedia, especially game programming and video, on Microsoft platforms. Originally, the names of these APIs all began with "Direct" ...
12 that implements ray tracing, for video graphic rendering. DXR was released with the
Windows 10 Windows 10 is a major release of Microsoft's Windows NT operating system. The successor to Windows 8.1, it was Software release cycle#Release to manufacturing (RTM), released to manufacturing on July 15, 2015, and later to retail on July 2 ...
October update (version 1809) on October 10, 2018. It requires an
AMD Advanced Micro Devices, Inc. (AMD) is an American multinational corporation and technology company headquartered in Santa Clara, California and maintains significant operations in Austin, Texas. AMD is a hardware and fabless company that de ...
Radeon RX 6000, 7000, or 9000 series,
Intel Intel Corporation is an American multinational corporation and technology company headquartered in Santa Clara, California, and Delaware General Corporation Law, incorporated in Delaware. Intel designs, manufactures, and sells computer compo ...
Arc A or B series, or
Nvidia Nvidia Corporation ( ) is an American multinational corporation and technology company headquartered in Santa Clara, California, and incorporated in Delaware. Founded in 1993 by Jensen Huang (president and CEO), Chris Malachowsky, and Curti ...
GeForce RTX 20, 30, 40, or 50 series
video card A graphics card (also called a video card, display card, graphics accelerator, graphics adapter, VGA card/VGA, video adapter, display adapter, or colloquially GPU) is a computer expansion card that generates a feed of graphics output to a displa ...
, which is designed to handle the high computing load used for ray tracing.


Additions to DirectX 12

With the introduction of DXR in October, four new features were added to DirectX 12: # ''Acceleration structure'' is a representation of the 3D environment that is efficiently formatted for the GPU. This environment is the plane that is used to create the starting points. The structure allows for modifications to be made and has optimized ray traversal. # The command list ''DispatchRays,'' is the start of the rays that are used to generate the reflection graphics. These are used by the GPU to begin the raytracing process. # New
HLSL The High-Level Shader Language or High-Level Shading Language (HLSL) is a proprietary shading language developed by Microsoft for the Direct3D 9 API to augment the shader assembly language, and went on to become the required shading language ...
shaders, ''ray-generation, closest-hit, any hit,'' and ''miss'', that are used describe computationally what DXR is doing when rendering raytracing. These shaders utilize the ''TraceRay'' function in HLSL to trace rays in the environment. When the ray interacts with the generated plane it can call on one of many selected hit or miss shaders. The variation of hit and miss shaders creates different textures. # ''Raytracing pipeline state'', a counterpart to the current Graphics and Compute pipeline state objects. Pipeline state objects are hardware settings that determine how the GPU interprets and renders information.


Technical details

DXR starts by sending out a ray from each pixel on a given plane and calculates which objects on the plane are hit by the ray first. Next, the DXR
algorithm In mathematics and computer science, an algorithm () is a finite sequence of Rigour#Mathematics, mathematically rigorous instructions, typically used to solve a class of specific Computational problem, problems or to perform a computation. Algo ...
estimates the amount of light where the ray intersects the object and attaches that calculation to the object. Objects can have different properties that will absorb or reflect light at different rates. To stop infinite bounces of a ray from happening, DXR will stop calculations after a certain amount of intersections. Rays that never interact with an object are tracked for how far they have gone. This is so the algorithm understands when rays have gone too far.


Updates

DXR was released to the public on October 10, 2018 with the Windows 10 October update (version 1809). The first major update was made to DXR on May 27, 2020 with the Windows 10 May update (version 2004). The May update implemented DXR Tier 1.1, which allows game engines to make real time calculations which makes the raytracing graphics faster and more efficient. During GDC 2025, Microsoft announced the next update to DXR (1.2) that will include standardized support for Opacity Micro-maps (OMM) and Shader Execution Reordering (SER). Major hardware vendors had announced official statements that they will implement the updated API spec into their products.


References

{{Reflist


External links


Microsoft developer blog on DirectX Raytracing

DirectX Raytracing and the Windows 10 October 2018 Update

Dev Preview of New DirectX 12 Features

Nvidia blog about raytracing vs. rasterization

Direct3D 12 Raytracing on Microsoft Docs
Application programming interfaces Raytracing Microsoft application programming interfaces Ray tracing (graphics) Virtual reality