16.7.0 2026-12-01
New Extensions
- Implement
GL_EXT_clip_cull_distanceandGL_ARB_cull_distance - Implement
GL_AMDX_multi_level_acceleration_structure
New Features
- Add the
emitSourceFileNameSPIR-V option, the-gNstandalone flag, and theemit_source_file_nameC interface field. These emit the source file name without the source text. - Allow
locationon inputs and outputs at any GLSL version for SPIR-V output - Allow multiple declarations of the same SPIR-V execution mode with different arguments
Built-in Functions and Variables
- Fix the
f16vec3overload ofhalfBitsToInt16. The name had a typo, so the overload did not exist. - Add
ballotAMDfromGL_AMD_gcn_shader - Add integer sampler overloads of the texture footprint functions in
GL_NV_shader_texture_footprint - Add
gl_out[].gl_ViewportIndexandgl_LayerforGL_NV_viewport_array2in tessellation control shaders
Descriptor Heap
- Allow unsized descriptor heap arrays and unsized last members of heap blocks in ESSL 3.10 and later
- Prevent invalid stores with
GL_EXT_structured_descriptor_heap - Fix the read of empty member debug information in the image wrapper struct of a heap
- Fix source names, duplicate types, and non-semantic debug information for descriptor heaps
- Fix the use of
Int8instead ofOffsetIdEXTinGL_EXT_structured_descriptor_heap - Fix
GL_EXT_structured_descriptor_heapwithscalar, which produced invalid output with no warning or error - Allow unsized arrays only as the last member of a resource heap or sampler heap
- Fix invalid
OpBufferPointerEXTbefore sampler and texture in a structured heap - Fold constant arithmetic in descriptor heap layouts, so constant inputs no longer produce
OpSpecConstantOp - Fix swizzled stores through a descriptor heap access chain
Bindless Textures
- Fix the crash on conversion of a sampler to
uvec2 - Make the rule for sampler and image
outparameters depend on theGL_ARB_bindless_textureextension, not on parse order - Allow assignment of samplers and images under
GL_ARB_bindless_texture
Stricter Checks
- Validate the argument count of
saturatedConvertEXT - Reject non-constant parameters for
spirv_type - Reject
constant_idon an expression of other specialization constants, because SPIR-V does not allowSpecIdonOpSpecConstantOp - Add a warning for multiple
local_sizedeclarations - Validate the arguments of
createTensorLayoutNVandcreateTensorViewNV - Reject
taskPayloadSharedEXTon a declaration that declares no variable - Reject reads of mesh shader outputs under
GL_EXT_mesh_shader.GL_NV_mesh_shaderis not affected. - Reject a mismatched requirement list in
makeSpirvRequirement - Require a constant
matrixLayoutargument incoopMatLoadandcoopMatStore - Reject a struct type parameter in
typeParametersCheck - Require
GL_NV_ray_tracing_motion_blurfor the hit object motion functions andGL_EXT_ray_tracing_position_fetchforhitObjectGetIntersectionTriangleVertexPositionsEXT. The--relaxed-errorsoption changes these errors to warnings. - Remove the rectangle sampler and image types and functions for Vulkan. They remain available in validation mode and for OpenGL SPIR-V.
HLSL
- Fix the null dereference on a non-constant
numthreadsargument - Fix the null dereference after post-increment or post-decrement of a non-lvalue
- Fix the parser crash on a malformed array specifier
- Fix the null dereference on an unnamed entry point parameter
- Reject a non-struct template type in
TextureBuffer - Reject a mismatched
Append()argument infinalizeAppendMethods - Fix
indexStructBufferContenton arrays of structured buffers - Fix the overflow of
preTokenStackinHlslTokenStream::recedeToken - Fix the access to an empty debug scope stack for a missing entry point
- Reject out-of-range sizes for vector and matrix templates
- Reject nested function definitions
- Reject multiple semantics on one declaration
- Reject
caseanddefaultlabels outside aswitch
Bug Fixes
- Pass the
Volatilememory operand to ray tracing loads - Fix the loss of the
Nontemporalmemory operand on loads through a swizzle - Fix the missing stride error and the wrong
XfbStridefor arrays of 32-bit types in transform feedback buffers - Mangle
buffer_referencetypes by block name, so overload resolution can tell them apart - Fix the format specifier for the 64-bit index in error messages. This corrects the output on 32-bit ARM and PowerPC.
- Emit specialization constant
&&and||asOpSpecConstantOp - Fix error messages for identifiers and extension names that contain a
%character - Emit
OpSConvertinstead ofOpUConvertfor specialization constants before SPIR-V 1.4 - Fix member extension lists after the redeclaration of an instance-named built-in block
- Record an extension that is used under
#extension all : warn. This fixes an out-of-bounds index in the SPIR-V back end. - Guard against a non-symbol l-value base in
lValueErrorCheckandrValueErrorCheck - Fix absolute include paths in
DirStackFileIncluder - Fix the signed overflow in
scanVersionfor a large#versionnumber - Require the Vulkan memory model for
coherentorvolatilebuffer reference blocks, and forshadercallcoherentbuffer references - Fix dropped memory semantics on stores for
++and--, for built-ins that writeoutarguments, and for swizzle assignment - Pass the literal value of a
spirv_literaloperand inspirv_instructionwith an instruction set - Fix the
Uniformstorage class forbuffer_typeuniform descriptors - Add a bounds check for the string operand in the SPIR-V disassembler
- Fix the null dereference on a specialization constant expression in
spirv_execution_mode_id - Initialize
coopvecNVandlongVectorin theTTypeconstructor forbuffer_referenceblocks - Fix the null dereference on the result type of cooperative vector and long vector built-in calls
- Declare the
RayTracingMotionBlurNVandRayTracingPositionFetchKHRcapabilities for hit object instructions - Fix the out-of-bounds read in constant folding of mixed long vector and vector operands
- Fix the null dereference on a non-symbol operand in
coopMatMulAdddiagnostics - Reject truncated instructions in the SPIR-V disassembler
- Fix the null dereference in
makeEditableafter a user variable takes the name of a built-in block member - Fix invalid SPIR-V for specialization constant initializers with debug information enabled
- Saturate an out-of-range float-to-integer conversion in
promoteConstantUnion - Fix 8-bit and 16-bit cross-type constructors with only the storage extensions enabled
- Fix
TType::deepCopyfor SPIR-V type parameters - Keep the preprocessor
elsetrackernon-negative on an unmatched#endif. This fixes an out-of-bounds write. - Emit debug type information for the
tensorLayoutNVandtensorViewNVtypes fromGL_NV_cooperative_matrix2
Build
- Do not pass
-pthreadto consumers of the glslang CMake targets