Repository navigation
Immutable
release. Only release title and notes can be modified.
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
sharedanduniformkeywords are removed in HLSL 202x, with compatibility warnings available for earlier language versions. - The
interfacekeyword and interface declarations are removed in HLSL 202x, with compatibility warnings available for earlier language versions. - Added support for
autoreturn 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,
cbufferandtbufferdeclarations and their members belong to their enclosing namespace. - HLSL 202x supports
const-qualified instance methods and rejects calls to non-constmethods on const objects, including objects in constant buffers. - HLSL 202x supports
mutablemember variables in structs, allowing them to be modified even inconst-qualified instance methods. - HLSL 202x adds
static_assertmatching 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_heaplowering to buffer-like resources (StructuredBuffer,ByteAddressBuffer,ConstantBuffer,TextureBuffer, and RW variants) viaSPV_KHR_untyped_pointers. - Extended
-fspv-use-descriptor-heapto supportRaytracingAccelerationStructureloaded fromResourceDescriptorHeap. Outside ray-tracing stages, list-fspv-extension=SPV_KHR_ray_query, SPV_KHR_ray_tracingorSPV_NV_ray_tracingso the resource heap stride covers acceleration structure descriptors; otherwise compilation fails. - Added
-fvk-resource-heap-strideand-fvk-sampler-heap-stride, which override the computedArrayStrideIdEXTof the resource and sampler descriptor heaps with a literalArrayStride. The value must be a power of two in[8, 256]. Both flags require-spirvand-fspv-use-descriptor-heapand 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.