DirectX 12 Agility SDK 1.621 Ships a Cross-Vendor Matrix API With Shader Model 6.10
On December 2, U.S. time, Microsoft announced the release of DirectX 12 Agility SDK 1.621 and DirectX Shader Compiler (DXC) 1.10.2611.
Shader Model 6.10, first released in preview on April 27, U.S. time, is now available for production games. Its principal new feature is LinAlg Matrix, an API for matrix operations. It lets developers access dedicated matrix hardware on supported GPUs from HLSL, the language used to write shaders, across GPU vendors.
The benefit is the ability to use shared code for the math needed in neural rendering, machine learning, and image processing. On AMD's RDNA 4, shaders can access the AI accelerators directly.
The size and purpose of the matrix computation determine how it needs to run. Microsoft's preview design offered three levels of matrix operations: individual threads, waves of threads executing in parallel, and thread groups.
For thread groups processing large matrices, the design leaves the division of work to the driver. That design carries over to the production release. With the driver handling GPU-specific differences, developers can more easily reuse their matrix code.
Running neural networks inside the renderer
According to Microsoft's announcement, Traverse Research, the developer of the Evolve GPU benchmark, adopted LinAlg Matrix for Neural Radiance Caching (NRC).
Traverse Research describes its work on NRC. It trains and updates a neural network that predicts radiance during rendering. The company has shown the model updating as the camera and animations move in an internal debug build of Evolve.
In comments for Microsoft's announcement, the company said running inference directly from HLSL on dedicated matrix hardware brought neural network inference time in Evolve down to one-quarter to one-tenth of its previous level.
NRC uses compute for training, input preparation, and integration into the renderer as well as inference. In a game, the frame-rate gain depends in part on how much of the rendering time the faster inference accounts for. Faster inference could also free up time for more complex calculations.
Traverse Research sees potential uses in denoising, upscaling, material representation, and texture compression. On August 13, U.S. time, AMD released MiniDXNN v0.4.0. Its sample application trains a neural network to represent textures and displays the reconstructed images in real time. It was built with the Shader Model 6.10 preview.
Neural networks give developers another way to calculate lighting and represent textures. The interesting possibility is using them inside the rendering calculations themselves as well as for processing the finished image.
Support differs across Radeon, Arc, and RTX
Microsoft's December 2 U.S. support table lists AMD's Radeon RX 9000 series, Intel Arc B-series graphics, Intel Core Ultra 200V and Series 3 processors, Intel Core Series 3 processors, and all NVIDIA RTX GPUs for LinAlg Matrix. Support for Qualcomm is planned in a future driver.
AMD also published its support details on December 2, U.S. time. LinAlg Matrix support extends to the Radeon AI PRO R9700 and R9600 series. AMD offers AMD Software: Agility SDK Retail Edition 26.20.12.04 for the production SDK and says support will reach automatic updates for its recommended AMD Software: Adrenalin Edition driver in the coming months.
The Radeon RX 7000 series supports features such as Shader Model 6.10's debugging capabilities. AMD lists the RX 9000 series and the Radeon AI PRO models above for LinAlg Matrix. The Shader Model version alone does not establish which features are available.
On December 2, U.S. time, Intel published a beta driver with support for LinAlg and other features. Microsoft points NVIDIA users to a developer driver that requires an NVIDIA Developer Program account to download.
Shader Model 6.10 production release
Support for LinAlg Matrix, a common matrix math API
| GPU vendor | Supported hardware | Driver |
|---|---|---|
| AMD | Radeon RX 9000 Radeon AI PRO R9700 Radeon AI PRO R9600 | Driver for production SDK 26.20.12.04 Recommended driver: support planned In the coming months |
| Intel | Arc B series Core Ultra 200V Core Ultra Series 3 Core Series 3 | Beta |
| NVIDIA | All RTX GPUs | Developer driver Account required |
| Qualcomm | Support planned in a future driver | |
GPU capabilities still vary by product with a common API. Developers can use shared code while designing their workloads around the operations that each GPU supports.
What changed between preview and release?
Changes since the first preview include vector atomic adds, which prevent updates from being lost when additions happen concurrently. The production release also adds validation for how the LinAlg Matrix API is used and records information about API usage in the compiled shader's DXIL container so support can be checked.
Microsoft says most API signatures, which define function arguments and types, changed since the preview. AMD asks developers who used preview builds to rebuild with DXC 1.10.2611.
More GPU controls beyond matrix operations
Shader Model 6.10 adds the intrinsics GetGroupWaveIndex() and GetGroupWaveCount() so a shader can look up its wave's position within the thread group and the number of waves in the group. This can help assign different work to each wave.
Group-shared memory limits also changed. Compute shaders and some others previously had a fixed limit of 32 KB, and mesh shaders had a 28 KB limit. The shader can now use a capacity reported by the hardware and declare the maximum amount it will use.
The design lets large matrix workloads use the available group-shared memory. On the supported GPUs AMD listed on December 2, U.S. time, the available capacity stays at the previous defaults.
Supported AMD GPUs, including the Radeon RX 7000 series, can also use DebugBreak() to trigger a breakpoint in a shader during debugging. Developers can enable or disable it when creating the pipeline state without recompiling shaders. It can also help generate DirectX Dump Files when needed.
Direct3D 12 adds unordered access views (UAVs) for depth buffers. Shader stages can read and write the depth information that determines which objects are in front of others. That makes custom depth tests and compute shader processing of depth data possible.
Applications can also set a default precompiled shader database for an entire device. This removes the need to select the database each time they create a pipeline state or related object.
For ray tracing, shader intrinsics can retrieve the vertex positions of the triangle a ray hit and a cluster identifier. Shader-side support for features introduced in the clustered geometry preview is now in the production release. Microsoft said in its December 2 U.S. announcement that production support for clustered geometry itself in Direct3D 12 is planned for 2027.
GPU choice and game design
A common matrix API could let developers spend less time implementing features separately for each GPU vendor and more time improving their rendering.
For a feature to work in a game, developers must implement it and the player's GPU and driver must support it. With a common API, performance and image quality still need to be tested on individual products.
The production release gives developers targeting multiple GPU vendors a common API to build against. Players would also benefit if the choice of GPU vendor mattered less to which game features they could use.
KioskNews shows a cleaned-up reading view extracted from the publisher’s page — the original always lives on their site, not ours.
