DirectX 12 with Neural Rendering: 10X Faster Inference

A Microsoft, one of the global technology giants, marked a significant advance in the field of game development and computer graphics with the official release of DirectX 12 Agility SDK 1.621 and Shader Model 6.10. This update represents a crucial milestone in the transition toward neural rendering in PC games. The feature set not only enhances the management of shaders and ray tracing, but, most importantly, introduces a unified, hardware-accelerated matrix API, allowing developers to integrate artificial intelligence workloads directly into their rendering pipelines.

Advertisement

This release fulfills the company’s promise, which had announced a major overhaul of DirectX’s ray tracing in October, bringing Shader Model 6.10 beyond the preview phase at the beginning of December.

The Arrival of Shader Model 6.10 and LinAlg Matrix

The central element of this update is LinAlg Matrix, which functions as a linear algebra API developed by Microsoft and designed to be compatible with different hardware vendors. This API allows matrix acceleration, a specialized feature, to be exposed through a common HLSL (High-Level Shading Language) interface.

By doing this, Microsoft is enabling software creators to insert machine learning tasks into their rendering pipelines without the need to maintain separate implementations for each GPU manufacturer. This means developers can use a standardized set of tools, regardless of whether the end-user has NVIDIA, AMD, or Intel cards.

📘 LinAlg Matrix

It is a linear algebra API developed by Microsoft, designed to be compatible with different hardware vendors.

The potential applications of this new capability go far beyond simple AI upscaling or frame generation. The scope includes techniques such as neural texture compression, neural materials, noise reduction in ray tracing, and prominently, Neural Radiance Caching (NRC).

DirectX 12 with Neural Rendering: 10X Faster Inference

AI Acceleration: Up to 10X Gain in NRC

Neural Radiance Caching (NRC) is a technique that uses neural networks to estimate indirect lighting in a scene, which has the potential to drastically reduce the computational load associated with additional light path tracing.

This efficiency has been proven in practice. Traverse Research, the developer of the Evolve GPU benchmark, demonstrated that by using the new DirectX 12 matrix capabilities, NRC neural network inference was accelerated by up to four, and in some cases, up to ten times.

Advertisement

🤔 Did You Know?

Neural Radiance Caching (NRC) uses neural networks to estimate indirect lighting, reducing the computational load of light path tracing.

This enhanced performance solidifies the position of neural rendering as a cutting-edge technology. The ability to accelerate NRC allows games and software to create richer and more complex visual environments with a more manageable computational cost.

Support for Different GPUs: NVIDIA, AMD, and Intel

The promise of democratizing neural rendering technologies, which historically relied on proprietary hardware interfaces, is being realized with this release. However, hardware support varies among major manufacturers.

NVIDIA, for example, offers full support for LinAlg Matrix through the newly released developer driver for its entire GeForce RTX line. AMD and Intel support, on the other hand, is more dependent on the hardware architecture in question.

In the case of Intel, support is available in Arc B series graphics and selected Core and Core Ultra processors that feature the latest integrated graphics. Qualcomm’s support is planned to be implemented in a future driver.

This diversity of support is a positive sign, as it helps ensure that more users can benefit from these AI technologies without relying on a single hardware ecosystem.

DirectX 12 with Neural Rendering: 10X Faster Inference

Other DirectX 12 Enhancements for Graphics Programming

Beyond the revolution brought by neural rendering, Shader Model 6.10 and Agility SDK 1.621 introduce several other notable improvements for graphics programming. These include:

  • Variable GroupShared Memory: Replaces fixed shared memory limits with hardware-dependent limits, allowing for the processing of more demanding workloads.
  • Group Wave Index: Simplifies task distribution and cooperation between different waves of shaders.
  • TriangleObjectPositions: Allows direct retrieval of the vertex positions of a triangle from ray tracing acceleration structures.
  • UAVs of Depth: Enables programmable writing to depth buffers, paving the way for custom rendering techniques.
  • Default Explicit PSDB: Simplifies the integration of pre-compiled shaders databases.
  • DebugBreak: Introduces configurable breakpoints at the shader level, simplifying the debugging process.

Microsoft also incorporated support for clustered geometry in the shader, although the functionality corresponding to DirectX Raytracing is still in preview, with a production release expected in 2027. In a separate note, the latest WARP release allows developers to distribute their Direct3D software renderer along with Windows applications for the first time.

In summary, while this release does not magically boost the performance of existing games, it establishes a fundamental basis for the next generation of neural rendering techniques. The most important thing is that these capabilities have been brought together under a standardized API that covers competing GPU architectures, potentially accelerating its adoption across the PC gaming ecosystem.

Credits: Microsoft DirectX Developer Blog and Traverse Research.

Related articles