Skip to content

DX Compiler Release for November 2026

Latest

Choose a tag to compare

@V-FEXrt V-FEXrt released this 02 Dec 18:01
Immutable release. Only release title and notes can be modified.
b6a4228

DXC Release Highlights

This release of the DirectX Shader Compiler (DXC) adds production support for Shader Model 6.10, along with various language changes, SPIR-V backend improvements, and bug fixes.

For an overview of the Shader Model 6.10 feature set and motivation, see:

HLSL Language

  • The shared and uniform keywords are removed in HLSL 202x, with compatibility warnings available for earlier language versions.
  • The interface keyword and interface declarations are removed in HLSL 202x, with compatibility warnings available for earlier language versions.
  • Added support for auto return types for normal functions aligning with C++14.
  • HLSL 202x now supports variadic templates and template function parameter packs, pack expansions, and sizeof...().
  • HLSL 202x disallows initializers on variables in explicit and implicit constant buffers and texture buffers.
  • HLSL 202x disallows putting cbuffer, tbuffer, or namespace declarations inside a cbuffer or tbuffer.
  • From HLSL 202x, cbuffer and tbuffer declarations and their members belong to their enclosing namespace.
  • HLSL 202x supports const-qualified instance methods and rejects calls to non-const methods on const objects, including objects in constant buffers.
  • HLSL 202x supports mutable member variables in structs, allowing them to be modified even in const-qualified instance methods.
  • HLSL 202x adds static_assert matching C++11 and C++17
  • Fix HLSL 202x conforming literals false-positive warning for hex literal signedness

SPIR-V Backend Improvements

  • Extended SPV_EXT_descriptor_heap lowering to buffer-like resources (StructuredBuffer, ByteAddressBuffer, ConstantBuffer, TextureBuffer, and RW variants) via SPV_KHR_untyped_pointers.
  • Extended -fspv-use-descriptor-heap to support RaytracingAccelerationStructure loaded from ResourceDescriptorHeap. Outside ray-tracing stages, list -fspv-extension=SPV_KHR_ray_query, SPV_KHR_ray_tracing or SPV_NV_ray_tracing so the resource heap stride covers acceleration structure descriptors; otherwise compilation fails.
  • Added -fvk-resource-heap-stride and -fvk-sampler-heap-stride, which override the computed ArrayStrideIdEXT of the resource and sampler descriptor heaps with a literal ArrayStride. The value must be a power of two in [8, 256]. Both flags require -spirv and -fspv-use-descriptor-heap and are rejected otherwise.

Bug Fixes

  • Improved compiler performance by reducing excessive memory-dependence scans during GVN and repeated vector-elimination work.
  • Fixed GVN load forwarding generating unsupported integer types when optimizing native vectors.
  • Fixed shader reflection dropping leading characters from user-defined struct type names.
  • Fixed an optimizer crash when scalarizing an out-of-bounds vector access.
  • Fixed members following a merged bitfield reading the wrong value when a struct is flat-converted.
  • Fixed incorrect shader results caused by stale overflow and exactness flags after bit-tracking dead code elimination.
  • Fixed an optimizer miscompile where selects of bitwise-not values guarded by signed less-than or unsigned compares were treated as a signed minimum.

More Details

This DXC release is also available as the Microsoft.Direct3D.DXC NuGet package.

For the complete itemized list of changes and technical details, see ReleaseNotes.md.