yum-mirror/glslang

git clone https://git.yummers.dev/yum-mirror/glslang

Jeremy HayesUpdate CHANGES for 16.5.0a8d28bd0

16.5.0
22.5 KiB550 linesraw

Revision history for glslang

All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.

NEXT

  • Deprecate the HLSL front-end. It will be removed at the next major version. See issue #4210 for details.
  • Add support for GL_EXT_opacity_micromap_ray_query_mode

16.5.0 2026-07-31

New Extensions

  • Implement GLSL_EXT_split_barrier / SPV_EXT_split_barrier
  • Implement GLSL_QCOM_multiple_wait_queues
  • Implement GLSL_QCOM_image_processing3
  • Implement GL_EXT_function_control_attributes

API Changes

  • Expose TVarEntryInfo as part of the public API in ShaderLang.h

Bug Fixes

  • Fix undefined shifts and signed overflow in #if expression evaluation
  • Fix out-of-bounds read when indexing idInstruction and idDescriptor
  • Fix null dereference in iomapper when uniformVarMap is empty
  • Fix out-of-bounds read on empty array initializer in convertInitializerList
  • Fix stack overflow on deeply nested macro invocations, capping macro expansion depth at 200 and emitting an error
  • Fix out-of-bounds read in handlePragma when #pragma STDGL has fewer than 4 tokens
  • Fix crash in preprocessor output when a backslash-newline continuation appears at end of input due to column underflow
  • Fix crash on excess #endif directives when a malformed #if expression desynchronizes elseSeen/ifdepth preprocessor counters
  • Fix out-of-bounds write in memberRemapper for nested buffer_reference blocks
  • Fix out-of-bounds read on long vector index in checkIndex

Other

  • Update SPIR-V size optimization and HLSL legalization pass lists to match spirv-tools, and add performance optimization option
  • Increase input_attachment_index limit to INT_MAX
  • Print compile and link error logs to stderr instead of stdout

16.4.0 2026-07-14

Descriptor Heap

  • Implement GLSL_EXT_structured_descriptor_heap with SPIR-V layout generation, heap offset access, buffer references, matrix layout decorations, and correct readonly/writeonly qualifier propagation for buffer and image descriptors
  • Fix descriptor heap-bound buffer access to use typed pointers
  • Omit NonUniform decoration when using descriptor heaps, as the SPIR-V spec does not require it
  • Add --relax-set-binding-limits option to allow large layout(set) and layout(binding) values for descriptor heap-style workflows with sparse set spaces
  • Reject combined image samplers with descriptor_heap

Compute Shader Derivatives

  • Fix GL_KHR_compute_shader_derivatives regressions on shaders using the GL_NV variant
  • Update compute shader derivative rules to allow texture operations with implicit derivatives without extensions, falling back to LoD 0

New Extensions

  • Implement GL_EXT_ocp_microscaling_types
  • Implement GL_NV_cooperative_matrix_decode_vector
  • Add basic support for GL_NV_desktop_lowp_mediump
  • Implement GL_EXT_opacity_micromap_ray_query_mode

Bug Fixes

  • Fix generated decoration string from UTF8EncodingKHR to UTFEncodingKHR
  • Fix missing SPIR-V extension emission for float16 derivative functions with SPV_AMD_gpu_shader_half_float
  • Apply NoContraction decoration to dot() when noContraction is set
  • Fix OpStore of buffer device address pointer to use 8-byte alignment, consistent with loads
  • Fix RayTracingOpacityMicromapKHR capability emission to only occur when gl_RayFlagsForceOpacityMicromap2StateEXT is actually used, fixing SPIR-V validation failures in ray query shaders outside ray-tracing pipeline stages
  • Fix setInvertY() to apply Y-inversion to GLSL vertex, geometry, and tessellation-evaluation shaders (previously only affected HLSL)
  • Fix .length() on arrays of long/cooperative vectors to use OpArrayLength instead of a constant component count
  • Fix unnecessary cooperative matrix conversions when creating arrays of KHR cooperative matrices
  • Add error for cooperative matrix *= with bf16/fp8 scalar operands
  • Fix out-of-bounds access in elseSeen at maximum #if/#ifdef nesting depth
  • Fix out-of-bounds read on empty struct texture template types
  • Fix crash in layoutObjectCheck when accessing members of an empty block
  • Emit an error when HLSL [numthreads] is given more than three arguments instead of crashing the compiler.
  • Emit error when attempting to convert a literal string to an incompatible type
  • Fix abortKHR to preserve the original user-defined string without modification
  • Fix out-of-bounds indexing in TDefaultIoResolverBase::addStage when a negative EShLanguage value is passed

Other

  • Add --discard-is-terminate option to emit OpTerminateInvocation instead of OpDemoteToHelperInvocation for GLSL discard when targeting SPIR-V 1.6+
  • Add REUSE license compliance infrastructure

16.3.0 2026-05-01

Deprecation Notice

  • Deprecate the HLSL front-end. See issue #4210 for details.

Other changes

  • Support GL_NV_explicit_typecast
  • Raise the maximum limit for specialization constant IDs
  • Add explicit 8-bit and 16-bit type support for bitfieldReverse
  • Implement system include directives for the standalone wrapper
  • Check for invalid usage of gl_WorkGroupSize components
  • HLSL: Provide string error context only if token is a string
  • Fix layoutDescriptorStride bitfield truncation for large stride values
  • GL_EXT_long_vector with 2-4 components no longer require LongVector capability
  • Fix alignment of guard blocks
  • Fix ShaderDebugInfo having invalid line numbers when generating SPIRV 1.0
  • Replace ostringstream with string concat during #include preprocessing
  • Check for bad parameters on long vector type
  • HLSL: Check for bad integer argument on Load*, Store*, Interlocked*
  • HLSL: handle type error for ternary operator
  • HLSL: Ensure scope is popped even when method body fails to parse
  • Avoid unneccessary copies in SpirvIntrinsics.cpp
  • Unconditionally emit debug source for include files when using non-semantic debug info
  • Support bfloat16 and float8 tensors
  • Add small type capabilities for GLSL.STD.450
  • Add initial support for NonSemantic.Shader.DebugInfo 101
  • Fix access chains for GL_ARM_tensors with raw descriptor heap accesses
  • Support GL_KHR_compute_shader_derivatives
  • Require a quad or linear layout qualifier to be specified for GL_KHR_compute_shader_derivatives
  • Supportx SPV_KHR_constant_data and SPV_KHR_abort

16.2.0 2026-01-22

  • Allow gl_FragDepth identifier to be redeclared
  • Replace 'GL_TASK(MESH)_SHADER_NV' with 'GL_TASK(MESH)_SHADER_EXT'
  • Scalarize swizzled MeshEXT stores
  • Support GL_EXT_long_vector
  • Add missing preamble #define for GL_EXT_nontemporal_keyword
  • Support GL_NV_push_constant_bank
  • Support GL_EXT_descriptor_heap

16.1.0 2025-12-01

  • Avoid emitting OpCapability RuntimeDescriptorArray when unnecessary
  • Improve compilation speed when debug infomation is enabled
  • Fix Debug Info for Retargeted Builtins
  • Support GL_EXT_shader_invocation_reorder
  • Add checks to coopMatMulAdd
  • Implement stringify operator
  • Add ES support for depth layout qualifier
  • Add debug info for hitObjectNV
  • Emit a DebugGlobalVariable instead of DebugLocalVariable for rayQueryEXT
  • Add debug info for constant variable
  • Improve debug line to point declaration
  • Fix bugs in buffer reference alignment
  • Reject string operands in binary and select ops
  • Support GL_EXT_shader_64bit_indexing
  • Support GLSL_EXT_uniform_buffer_unsized_array
  • Add semantic check for cooperative vector loads/stores
  • Improve the debug info name of opaque (sampler) types
  • Support IO mapping of combined samplers and acceleration structures
  • Fix bug in debug info for bool types inside SSBO/UBO
  • Fix bug in debug info for struct member names
  • Add methods for entry point and invert-y to C interface

16.0.0 2025-09-25

Breaking changes

  • Remove spirv-remapper (ported to SPIRV-Tools as canonicalize-ids optimization pass)

Other changes

  • Emit error for in/out structs containing booleans
  • Fix contradictory layout link errors
  • Improve error checks for float8 math
  • Fix bug in cooperative matrix load/store handling of array slices
  • Update memory semantic validation rules to match update to Vulkan specification
  • Simplify glslang grammar for identifier lists
  • Fix erroneous parse errors in variable declarations using existing struct names
  • Fix type conversions for createTensorLayout/ViewNV
  • Fix OpAccessChain signed index issue for small unsigned integers
  • Support GLSL_QCOM_cooperative_matrix_conversion
  • Allow spec constant matrix use
  • Fix inconsistent labeling of capability strings
  • Fix crash on unnamed function parameters under relaxed rules
  • Fix exported member functions in ShaderLang.h

15.4.0 2025-06-26

  • Support GL_NV_gpu_shader5/GL_ARB_gpu_shader5
  • Remove BUILD_SHARED_LIBS option (defer to built-in variable)
  • Remap discard to OpDemoteToHelperInvocation
  • Fix typos and improve readability of help message
  • Support GLSL_QCOM_tile_shading
  • Emit correct capability for linear swept sphere
  • Support GL_EXT_float8_e5m2_e4m3
  • Move E_SPV_ARM_cooperative_matrix_layouts into GLSL.ext.ARM.h
  • Support GL_ARM_tensors

15.3.0 2025-04-24

  • Fix CMake find_package on Windows when building shared libraries
  • Fix crash calling coopMatLoadTensorNV on an array element
  • Avoid reusing array types with stride when no stride is requested
  • Fix non-ASCII comments
  • Support GL_EXT_bfloat16
  • Fix several issues with link-time implicit array size merging
  • Support DebugSourceContinued
  • LiveTraverser no longer traverses switch cases that are statically not accessed
  • Implement optional cross-stage check for inputs with no matching outputs

15.2.0 2025-02-24

  • Fix find_package on Windows when BUILD_SHARED_LIBS=ON
  • Emit error if using in/out with struct pointer
  • Emit SPV_EXT_opacity_micromap if GL extension is present
  • Support GL_NV_linear_swept_spheres
  • Support GLSL_EXT_nontemporal_keyword
  • Support GL_NV_cluster_acceleration_structure
  • Support GL_NV_cooperative_vector
  • Check SparseTextureOffset non-const parameters
  • Support GL_EXT_texture_offset_non_const
  • Revert cross-stage check for missing outputs
  • Support EXT_integer_dot_product
  • Add support for OpTypeRayQueryKHR and OpTypeAccelerationStructureKHR to SPVRemapper

15.1.0 2024-12-13

  • Add Vulkan 1.4 target and client
  • Improve conversion of uniform block to push constant
  • Improve cross stage error reporting by reporting proper stager rather than "unkwown stage"
  • Add warning if forward declaration uses layout qualifiers
  • Implement GLSL_NV_cooperative_matrix2
  • Emit OpModfStruct instead of depracated OpModf
  • Add link-time cross stage optimization
  • Add column to DebugLexicalBlock
  • Propagate errors from symbol table initialization
  • Fix nonsemantic debuginfo line attribution for cooperative matrix

15.0.0 2024-09-23

Breaking changes

  • Explicitly export all symbols that are part of the public API and hide other symbols by default

Other changes

  • Allow building glslang without the SPIR-V backend using the new ENABLE_SPIRV build option
  • Add setResourceSetBinding method to the API
  • Add interface to get the GLSL IO mapper and resolver
  • Allow compute derivative modes when the workgroup dimensions are spec constants
  • Improve debug location of branch/return instructions
  • Silence preprocessor '#' error reporting in inactive #if/#ifdef/#elif/#else blocks
  • Apply GLSL memory decorations to top-level OpVariable
  • Move definition of GLSLANG_EXPORT to visibility.h
  • Merge ancillary libraries into main glslang library and stub originals
  • Add public setSourceFile and addSourceText methods to TShader class
  • Add type checks for hitObjectNV
  • Add optimizerAllowExpandedIDBound to SpvOptions
  • Add SpvTools.h back to public headers
  • Add cross-stage check for missing outputs
  • Fix HLSL offsets for non-buffers
  • Add types and functions for IO mapping to API
  • Add function to set preprocessed code to API
  • Add set/get version functions to API
  • Expose setGlobalUniform functions to API
  • Don't emit debug instructions before an OpPhi
  • Add command-line and API option to enable reporting column location for compiler errors
  • Improve location aliasing checks
  • Support constant expression calculated by matrixCompMult
  • Fix crash caused by atomicCounter() use without arguments
  • Fix multi-line function call line numbers
  • Add line info to OpDebugDeclare for function parameters
  • Fix HLSL OpDebugFunction file name
  • Fix duplicate decorations
  • Enable compilation of glslang without thread support for WASI

14.3.0 2024-06-25

  • Generate vector constructions more efficiently when sizes match
  • Skip identity conversions for 8-bit and 16-bit types
  • Add cmake aliases for public libraries
  • Support ARM extended matrix layout
  • Emit debug info for buffer references
  • Add support for OpExtInstWithForwardRefsKHR
  • Generate SPV_EXT_replicated_compisites when requested by pragma
  • Reuse loads generated for repeated function arguments
  • Fix gl_HitT alias of gl_RayTmax
  • Fix some cases where invalid SPIR-V was being generated when using separate samplers
  • Add back layoutLocation to public API

14.2.0 2024-05-02

  • Improve checking for location aliasing errors
  • Fix undefined behavior in parser
  • Add bounds check to gl_SampleMask
  • Fix alignment and padding of matrices consuming one vector
  • Remove duplicate SPIR-V decorations
  • Check for exponent overflow in float parser
  • Fix bug in relaxed verification rules
  • Fix disassembly of debugBreak
  • Fix bug when importing SPIR-V extended intruction set
  • Fix issues with the interaction of cooperative_matrix and spirv_intrinsics
  • Support SPV_QCOM_image_processing2
  • Support files with UTF8BOM character

14.1.0 2024-03-08

  • Add a new --abosute-path command-line option to output absolute paths in error messages
  • Support GL_EXT_control_flow_attributes2
  • Support GL_ARB_shading_language_include
  • Fix HLSL built-in passthrough via inout
  • Enable -Wimplicit-fallthrough and fix warnings
  • Fix -Wmissing_field_initializer warnings
  • Document supported dependencies in known_good.json
  • Clear spirv vector before use
  • Emit debug info for accelerationStructure and rayQuery variables
  • Support NV_shader_atomic_fp16_vector
  • Support GL_EXT_expect_assume_support
  • Allow external control of whether glslang will be tested or installed
  • Improve debug source and line info
  • Support GL_KHR_shader_subgroup_rotate
  • Add SPIRV-Tools-opt dependency if ENABLE_OPT
  • Support EXT_shader_quad_control
  • Add OpAssumeTrueKHR and OpExpectKHR
  • Support GL_EXT_maximal_reconvergence
  • Remove generation of deprecated Target.cmake files
  • Fix array size of gl_SampleMask and gl_SampleMaskIn
  • Support GL_ARB_texture_multisample_extension
  • Emit DebugTypePointer when non-semantic debug info is enabled

14.0.0 2023-12-21

Breaking changes

  • The legacy libraries named HLSL and OGLCompiler have been removed. To avoid future disruptions, please use cmake's find_package mechanism rather than hardcoding library dependencies.
  • Only the headers that are part of glslang's public interface are included in the install target.
  • Remove OVERRIDE_MSVCCRT cmake option.

Other changes

  • Fix spv_options initialization
  • Fix line number for OpDebugFunction and OpDebugScope for function
  • Fix SPV_KHR_cooperative_matrix enumerants
  • Fix nullptr crash
  • Fix GL_ARB_shader_storage_buffer_object version
  • Fix interpolant ES error
  • Generate DebugValue for constant arguments
  • Overflow/underflow out-of-range floats to infinity/0.0 respectively
  • Support SV_ViewID keywords for HLSL
  • Implement relaxed rule for opaque struct members
  • Add BUILD_WERROR cmake option
  • Add GLSLANG_TESTS cmake option
  • Always generate OpDebugBasicType for bool type
  • Fix GLSL parsing of '#' when not preceded by space or tab
  • Fix GL_ARB_bindless_texture availability
  • Support GL_EXT_draw_instanced extension
  • Support GL_EXT_texture_array extension
  • Fix conversion of 64-bit unsigned integer constants to bool
  • Output 8-bit and 16-bit capabilities when appropriate for OpSpecConstant

13.1.1 2023-10-16

  • Initialize compile_only field in C interface

13.1.0 2023-10-13

  • Support GL_EXT_texture_shadow_lod
  • Support GL_NV_displacement_micromap
  • Fix ByteAddressBuffer when used a function parameter
  • Add more verbose messages if SPIRV-Tools is not found
  • Fix names for explicitly sized types when emitting nonsemantic debug info
  • Emit error for r-value arguments in atomic memory operations
  • Add --no-link option
  • Beautify preprocessor output format
  • Fix race condition in glslangValidator
  • Only set LocalSizeId mode when necessary
  • Don't emit invalid debug info for buffer references

13.0.0 2023-08-23

Breaking changes

  • Simplify PoolAlloc via thread_local
    • Remove InitializeDLL functions
    • Remove OSDependent TLS functions
  • Remove GLSLANG_WEB and GLSLANG_WEB_DEVEL code paths

Other changes

  • Raise CMAKE minimum to 3.17.2
  • Support GL_KHR_cooperative_matrix
  • Support GL_QCOM_image_processing_support
  • Support outputting each module to a filename with spirv-remap
  • Generate an error when gl_PrimitiveShaderRateEXT is used without enabling the extension
  • Improve layout checking when GL_EXT_spirv_intrinsics is enabled

12.3.1 2023-07-20

Other changes

  • Improve backward compatibility for glslangValidator rename on Windows

12.3.0 2023-07-19

Other changes

  • Rename glslangValidator to glslang and create glslangValidator symlink
  • Support HLSL binary literals
  • Add missing initialization members for web
  • Improve push_constant upgrading
  • Fix race condition in spirv remap
  • Support pre and post HLSL qualifier validation
  • Force generateDebugInfo when non-semantic debug info is enabled
  • Exit with error if output file cannot be written
  • Fix struct member buffer reference decorations

12.2.0 2023-05-17

Other changes

  • Support GLSL_EXT_shader_tile_image
  • Support GL_EXT_ray_tracing_position_fetch
  • Support custom include callbacks via the C API
  • Add preamble-text command-line option
  • Accept variables as parameters of spirv_decorate_id
  • Fix generation of conditionals with a struct result
  • Fix double expansion of macros
  • Fix DebugCompilationUnit scope
  • Improve line information

12.1.0 2023-03-21

Other changes

  • Reject non-float inputs/outputs for version less than 120
  • Fix invalid BufferBlock decoration for SPIR-V 1.3 and above
  • Add HLSL relaxed-precision float/int matrix expansions
  • Block decorate Vulkan structs with RuntimeArrays
  • Support InterlockedAdd on float types

12.0.0 2023-01-18

Breaking changes

  • An ABI was accidentally broken in #3014. Consequently, we have incremented the major revision number.

Other changes

  • Add support for ARB_bindless_texture.
  • Add support for GL_NV_shader_invocation_reorder.
  • Fix const parameter debug types when using NonSemantic.Shader.DebugInfo.100.
  • Fix NonSemantic.Shader.DebugInfo.100 disassembly.
  • Fix MaxDualSourceDrawBuffersEXT usage.
  • Fix structure member reference crash.

11.13.0 2022-12-06

Other changes

  • Make HelperInvocation accesses volatile for SPIR-V 1.6.
  • Improve forward compatibility of ResourceLimits interface
  • Remove GLSLANG_ANGLE

11.12.0 2022-10-12

Other changes

  • Update generator version
  • Add support for GL_EXT_mesh_shader
  • Add support for NonSemantic.Shader.DebugInfo.100
  • Make OpEmitMeshTasksEXT a terminal instruction
  • Make gl_SubGroupARB a flat in int in Vulkan
  • Add support for GL_EXT_opacity_micromap
  • Add preamble support to C interface

11.11.0 2022-08-11

Other changes

  • Add OpSource support to C interface
  • Deprecate samplerBuffer for spirv1.6 and later
  • Add support for SPV_AMD_shader_early_and_late_fragment_tests

11.10.0 2022-06-02

Other changes

  • Generate OpLine before OpFunction
  • Add support for VK_EXT_fragment_shader_barycentric
  • Add whitelist filtering for debug comments in SPIRV-Remap
  • Add support for GL_EXT_ray_cull_mask

11.9.0 2022-04-06

Other changes

  • Add GLSL version override functionality
  • Add eliminate-dead-input-components to -Os
  • Add enhanced-msgs option
  • Explicitly use Python 3 for builds

11.8.0 2022-01-27

Other changes

  • Add support for SPIR-V 1.6
  • Add support for Vulkan 1.3
  • Add --hlsl-dx-position-w option

11.7.0 2021-11-11

Other changes

  • Add support for targeting Vulkan 1.2 in the C API

11.6.0 2021-08-25

Other changes

  • Atomic memory function only for shader storage block member or shared variable
  • Add support for gl_MaxVaryingVectors for ogl
  • Fix loading bool arrays from interface blocks
  • Generate separate stores for partially swizzled memory stores
  • Allow layout(std430) uniform with GL_EXT_scalar_block_layout
  • Support for pragma STDGL invariant(all)
  • Support for GL_NV_ray_tracing_motion_blur

11.5.0 2021-06-23

Other changes

  • Implement GLSL_EXT_shader_atomic_float2
  • Implement GL_EXT_spirv_intrinsics
  • Fixed SPIR-V remapper not remapping OpExtInst instruction set IDs
  • only declare compatibility gl_ variables in compatibility mode
  • Add support for float spec const vector initialization
  • Implement GL_EXT_subgroup_uniform_control_flow.
  • Fix arrays dimensioned with spec constant sized gl_WorkGroupSize
  • Add support for 64bit integer scalar and vector types to bitCount() builtin

11.4.0 2021-04-22

Other changes

  • Fix to keep source compatible with CMake 3.10.2

11.3.0 2021-04-21

Other changes

  • Added --depfile
  • Added --auto-sampled-textures
  • Now supports InterpolateAt-based functions
  • Supports cross-stage automatic IO mapping
  • Supports GL_EXT_vulkan_glsl_relaxed (-R option)

11.2.0 2021-02-18

Other changes

  • Removed Python requirement when not building with spirv-tools
  • Add support for GL_EXT_shared_memory_block
  • Implement GL_EXT_null_initializer
  • Add CMake support for Fuschia

11.1.0 2020-12-07

Other changes

  • Added ray-tracing extension support

11.0.0 2020-07-20

Breaking changes

Visual Studio 2013 is no longer supported

As scheduled, Microsoft Visual Studio 2013 is no longer officially supported. Please upgrade to at least Visual Studio 2015.

10.15.3847 2020-07-20

Breaking changes

  • The following files have been removed:
    • glslang/include/revision.h
    • glslang/include/revision.template

The GLSLANG_MINOR_VERSION and GLSLANG_PATCH_LEVEL defines have been removed from the public headers.
Instead each build script now uses the new build_info.py script along with the build_info.h.tmpl and this CHANGES.md file to generate the glslang build-time generated header glslang/build_info.h.

The new public API to obtain the glslang version is glslang::GetVersion().

Other changes

1# Revision history for `glslang`
2
3All notable changes to this project will be documented in this file.
4This project adheres to [Semantic Versioning](https://semver.org/).
5
6## NEXT
7
8* Deprecate the HLSL front-end. It will be removed at the next major version.
9  See issue #4210 for details.
10* Add support for GL_EXT_opacity_micromap_ray_query_mode
11
12## 16.5.0 2026-07-31
13
14### New Extensions
15
16* Implement `GLSL_EXT_split_barrier` / `SPV_EXT_split_barrier`
17* Implement `GLSL_QCOM_multiple_wait_queues`
18* Implement `GLSL_QCOM_image_processing3`
19* Implement `GL_EXT_function_control_attributes`
20
21### API Changes
22
23* Expose `TVarEntryInfo` as part of the public API in `ShaderLang.h`
24
25### Bug Fixes
26
27* Fix undefined shifts and signed overflow in `#if` expression evaluation
28* Fix out-of-bounds read when indexing `idInstruction` and `idDescriptor`
29* Fix null dereference in iomapper when `uniformVarMap` is empty
30* Fix out-of-bounds read on empty array initializer in `convertInitializerList`
31* Fix stack overflow on deeply nested macro invocations, capping macro expansion depth at 200 and emitting an error
32* Fix out-of-bounds read in `handlePragma` when `#pragma STDGL` has fewer than 4 tokens
33* Fix crash in preprocessor output when a backslash-newline continuation appears at end of input due to column underflow
34* Fix crash on excess `#endif` directives when a malformed `#if` expression desynchronizes `elseSeen`/`ifdepth` preprocessor counters
35* Fix out-of-bounds write in `memberRemapper` for nested `buffer_reference` blocks
36* Fix out-of-bounds read on long vector index in `checkIndex`
37
38### Other
39
40* Update SPIR-V size optimization and HLSL legalization pass lists to match spirv-tools, and add performance optimization option
41* Increase `input_attachment_index` limit to `INT_MAX`
42* Print compile and link error logs to stderr instead of stdout
43
44## 16.4.0 2026-07-14
45
46### Descriptor Heap
47
48* Implement `GLSL_EXT_structured_descriptor_heap` with SPIR-V layout generation, heap offset access, buffer references, matrix layout decorations, and correct `readonly`/`writeonly` qualifier propagation for buffer and image descriptors
49* Fix descriptor heap-bound buffer access to use typed pointers
50* Omit `NonUniform` decoration when using descriptor heaps, as the SPIR-V spec does not require it
51* Add `--relax-set-binding-limits` option to allow large `layout(set)` and `layout(binding)` values for descriptor heap-style workflows with sparse set spaces
52* Reject combined image samplers with `descriptor_heap`
53
54### Compute Shader Derivatives
55
56* Fix `GL_KHR_compute_shader_derivatives` regressions on shaders using the `GL_NV` variant
57* Update compute shader derivative rules to allow texture operations with implicit derivatives without extensions, falling back to LoD 0
58
59### New Extensions
60
61* Implement `GL_EXT_ocp_microscaling_types`
62* Implement `GL_NV_cooperative_matrix_decode_vector`
63* Add basic support for `GL_NV_desktop_lowp_mediump`
64* Implement `GL_EXT_opacity_micromap_ray_query_mode`
65
66### Bug Fixes
67
68* Fix generated decoration string from `UTF8EncodingKHR` to `UTFEncodingKHR`
69* Fix missing SPIR-V extension emission for `float16` derivative functions with `SPV_AMD_gpu_shader_half_float`
70* Apply `NoContraction` decoration to `dot()` when `noContraction` is set
71* Fix `OpStore` of buffer device address pointer to use 8-byte alignment, consistent with loads
72* Fix `RayTracingOpacityMicromapKHR` capability emission to only occur when `gl_RayFlagsForceOpacityMicromap2StateEXT` is actually used, fixing SPIR-V validation failures in ray query shaders outside ray-tracing pipeline stages
73* Fix `setInvertY()` to apply Y-inversion to GLSL vertex, geometry, and tessellation-evaluation shaders (previously only affected HLSL)
74* Fix `.length()` on arrays of long/cooperative vectors to use `OpArrayLength` instead of a constant component count
75* Fix unnecessary cooperative matrix conversions when creating arrays of KHR cooperative matrices
76* Add error for cooperative matrix `*=` with bf16/fp8 scalar operands
77* Fix out-of-bounds access in `elseSeen` at maximum `#if`/`#ifdef` nesting depth
78* Fix out-of-bounds read on empty struct texture template types
79* Fix crash in `layoutObjectCheck` when accessing members of an empty block
80* Emit an error when HLSL [numthreads] is given more than three arguments instead of crashing the compiler.
81* Emit error when attempting to convert a literal string to an incompatible type
82* Fix `abortKHR` to preserve the original user-defined string without modification
83* Fix out-of-bounds indexing in `TDefaultIoResolverBase::addStage` when a negative `EShLanguage` value is passed
84
85### Other
86
87* Add `--discard-is-terminate` option to emit `OpTerminateInvocation` instead of `OpDemoteToHelperInvocation` for GLSL `discard` when targeting SPIR-V 1.6+
88* Add REUSE license compliance infrastructure
89
90## 16.3.0 2026-05-01
91### Deprecation Notice
92* Deprecate the HLSL front-end. See issue #4210 for details.
93
94### Other changes
95* Support GL_NV_explicit_typecast
96* Raise the maximum limit for specialization constant IDs
97* Add explicit 8-bit and 16-bit type support for bitfieldReverse
98* Implement system include directives for the standalone wrapper
99* Check for invalid usage of gl_WorkGroupSize components
100* HLSL: Provide string error context only if token is a string
101* Fix layoutDescriptorStride bitfield truncation for large stride values
102* GL_EXT_long_vector with 2-4 components no longer require LongVector capability
103* Fix alignment of guard blocks
104* Fix ShaderDebugInfo having invalid line numbers when generating SPIRV 1.0
105* Replace ostringstream with string concat during #include preprocessing
106* Check for bad parameters on long vector type
107* HLSL: Check for bad integer argument on Load*, Store*, Interlocked*
108* HLSL: handle type error for ternary operator
109* HLSL: Ensure scope is popped even when method body fails to parse
110* Avoid unneccessary copies in SpirvIntrinsics.cpp
111* Unconditionally emit debug source for include files when using non-semantic debug info
112* Support bfloat16 and float8 tensors
113* Add small type capabilities for GLSL.STD.450
114* Add initial support for NonSemantic.Shader.DebugInfo 101
115* Fix access chains for GL_ARM_tensors with raw descriptor heap accesses
116* Support GL_KHR_compute_shader_derivatives
117* Require a quad or linear layout qualifier to be specified for GL_KHR_compute_shader_derivatives
118* Supportx SPV_KHR_constant_data and SPV_KHR_abort
119
120## 16.2.0 2026-01-22
121* Allow gl_FragDepth identifier to be redeclared
122* Replace 'GL_TASK(MESH)_SHADER_NV' with 'GL_TASK(MESH)_SHADER_EXT'
123* Scalarize swizzled MeshEXT stores
124* Support GL_EXT_long_vector
125* Add missing preamble #define for GL_EXT_nontemporal_keyword
126* Support GL_NV_push_constant_bank
127* Support GL_EXT_descriptor_heap
128
129## 16.1.0 2025-12-01
130* Avoid emitting OpCapability RuntimeDescriptorArray when unnecessary
131* Improve compilation speed when debug infomation is enabled
132* Fix Debug Info for Retargeted Builtins
133* Support GL_EXT_shader_invocation_reorder
134* Add checks to coopMatMulAdd
135* Implement stringify operator
136* Add ES support for depth layout qualifier
137* Add debug info for hitObjectNV
138* Emit a DebugGlobalVariable instead of DebugLocalVariable for rayQueryEXT
139* Add debug info for constant variable
140* Improve debug line to point declaration
141* Fix bugs in buffer reference alignment
142* Reject string operands in binary and select ops
143* Support GL_EXT_shader_64bit_indexing
144* Support GLSL_EXT_uniform_buffer_unsized_array
145* Add semantic check for cooperative vector loads/stores
146* Improve the debug info name of opaque (sampler) types
147* Support IO mapping of combined samplers and acceleration structures
148* Fix bug in debug info for bool types inside SSBO/UBO
149* Fix bug in debug info for struct member names
150* Add methods for entry point and invert-y to C interface
151
152## 16.0.0 2025-09-25
153### Breaking changes
154* Remove spirv-remapper (ported to SPIRV-Tools as canonicalize-ids optimization pass)
155
156### Other changes
157* Emit error for in/out structs containing booleans
158* Fix contradictory layout link errors
159* Improve error checks for float8 math
160* Fix bug in cooperative matrix load/store handling of array slices
161* Update memory semantic validation rules to match update to Vulkan specification
162* Simplify glslang grammar for identifier lists
163* Fix erroneous parse errors in variable declarations using existing struct names
164* Fix type conversions for createTensorLayout/ViewNV
165* Fix OpAccessChain signed index issue for small unsigned integers
166* Support GLSL_QCOM_cooperative_matrix_conversion
167* Allow spec constant matrix use
168* Fix inconsistent labeling of capability strings
169* Fix crash on unnamed function parameters under relaxed rules
170* Fix exported member functions in ShaderLang.h
171
172## 15.4.0 2025-06-26
173* Support GL_NV_gpu_shader5/GL_ARB_gpu_shader5
174* Remove BUILD_SHARED_LIBS option (defer to built-in variable)
175* Remap discard to OpDemoteToHelperInvocation
176* Fix typos and improve readability of help message
177* Support GLSL_QCOM_tile_shading
178* Emit correct capability for linear swept sphere
179* Support GL_EXT_float8_e5m2_e4m3
180* Move E_SPV_ARM_cooperative_matrix_layouts into GLSL.ext.ARM.h
181* Support GL_ARM_tensors
182
183## 15.3.0 2025-04-24
184* Fix CMake find_package on Windows when building shared libraries
185* Fix crash calling coopMatLoadTensorNV on an array element
186* Avoid reusing array types with stride when no stride is requested
187* Fix non-ASCII comments
188* Support GL_EXT_bfloat16
189* Fix several issues with link-time implicit array size merging
190* Support DebugSourceContinued
191* LiveTraverser no longer traverses switch cases that are statically not accessed
192* Implement optional cross-stage check for inputs with no matching outputs
193
194## 15.2.0 2025-02-24
195* Fix find_package on Windows when BUILD_SHARED_LIBS=ON
196* Emit error if using in/out with struct pointer
197* Emit SPV_EXT_opacity_micromap if GL extension is present
198* Support GL_NV_linear_swept_spheres
199* Support GLSL_EXT_nontemporal_keyword
200* Support GL_NV_cluster_acceleration_structure
201* Support GL_NV_cooperative_vector
202* Check SparseTextureOffset non-const parameters
203* Support GL_EXT_texture_offset_non_const
204* Revert cross-stage check for missing outputs
205* Support EXT_integer_dot_product
206* Add support for OpTypeRayQueryKHR and OpTypeAccelerationStructureKHR to SPVRemapper
207
208## 15.1.0 2024-12-13
209* Add Vulkan 1.4 target and client
210* Improve conversion of uniform block to push constant
211* Improve cross stage error reporting by reporting proper stager rather than "unkwown stage"
212* Add warning if forward declaration uses layout qualifiers
213* Implement GLSL_NV_cooperative_matrix2
214* Emit OpModfStruct instead of depracated OpModf
215* Add link-time cross stage optimization
216* Add column to DebugLexicalBlock
217* Propagate errors from symbol table initialization
218* Fix nonsemantic debuginfo line attribution for cooperative matrix
219
220## 15.0.0 2024-09-23
221### Breaking changes
222* Explicitly export all symbols that are part of the public API and hide other symbols by default
223
224### Other changes
225* Allow building glslang without the SPIR-V backend using the new ENABLE_SPIRV build option
226* Add setResourceSetBinding method to the API
227* Add interface to get the GLSL IO mapper and resolver
228* Allow compute derivative modes when the workgroup dimensions are spec constants
229* Improve debug location of branch/return instructions
230* Silence preprocessor '#' error reporting in inactive #if/#ifdef/#elif/#else blocks
231* Apply GLSL memory decorations to top-level OpVariable
232* Move definition of GLSLANG_EXPORT to visibility.h
233* Merge ancillary libraries into main glslang library and stub originals
234* Add public setSourceFile and addSourceText methods to TShader class
235* Add type checks for hitObjectNV
236* Add optimizerAllowExpandedIDBound to SpvOptions
237* Add SpvTools.h back to public headers 
238* Add cross-stage check for missing outputs
239* Fix HLSL offsets for non-buffers
240* Add types and functions for IO mapping to API
241* Add function to set preprocessed code to API
242* Add set/get version functions to API
243* Expose setGlobalUniform functions to API
244* Don't emit debug instructions before an OpPhi
245* Add command-line and API option to enable reporting column location for compiler errors
246* Improve location aliasing checks
247* Support constant expression calculated by matrixCompMult
248* Fix crash caused by atomicCounter() use without arguments
249* Fix multi-line function call line numbers
250* Add line info to OpDebugDeclare for function parameters
251* Fix HLSL OpDebugFunction file name
252* Fix duplicate decorations
253* Enable compilation of glslang without thread support for WASI
254
255## 14.3.0 2024-06-25
256* Generate vector constructions more efficiently when sizes match
257* Skip identity conversions for 8-bit and 16-bit types
258* Add cmake aliases for public libraries
259* Support ARM extended matrix layout
260* Emit debug info for buffer references
261* Add support for OpExtInstWithForwardRefsKHR
262* Generate SPV_EXT_replicated_compisites when requested by pragma
263* Reuse loads generated for repeated function arguments
264* Fix gl_HitT alias of gl_RayTmax
265* Fix some cases where invalid SPIR-V was being generated when using separate samplers
266* Add back layoutLocation to public API
267
268## 14.2.0 2024-05-02
269* Improve checking for location aliasing errors
270* Fix undefined behavior in parser
271* Add bounds check to gl_SampleMask
272* Fix alignment and padding of matrices consuming one vector
273* Remove duplicate SPIR-V decorations
274* Check for exponent overflow in float parser
275* Fix bug in relaxed verification rules
276* Fix disassembly of debugBreak
277* Fix bug when importing SPIR-V extended intruction set
278* Fix issues with the interaction of cooperative_matrix and spirv_intrinsics
279* Support SPV_QCOM_image_processing2
280* Support files with UTF8BOM character
281
282## 14.1.0 2024-03-08
283* Add a new --abosute-path command-line option to output absolute paths in error messages
284* Support GL_EXT_control_flow_attributes2
285* Support GL_ARB_shading_language_include
286* Fix HLSL built-in passthrough via inout
287* Enable -Wimplicit-fallthrough and fix warnings
288* Fix -Wmissing_field_initializer warnings
289* Document supported dependencies in known_good.json
290* Clear spirv vector before use
291* Emit debug info for accelerationStructure and rayQuery variables
292* Support NV_shader_atomic_fp16_vector
293* Support GL_EXT_expect_assume_support
294* Allow external control of whether glslang will be tested or installed
295* Improve debug source and line info
296* Support GL_KHR_shader_subgroup_rotate
297* Add SPIRV-Tools-opt dependency if ENABLE_OPT
298* Support EXT_shader_quad_control
299* Add OpAssumeTrueKHR and OpExpectKHR
300* Support GL_EXT_maximal_reconvergence
301* Remove generation of deprecated Target.cmake files
302* Fix array size of gl_SampleMask and gl_SampleMaskIn
303* Support GL_ARB_texture_multisample_extension
304* Emit DebugTypePointer when non-semantic debug info is enabled
305
306## 14.0.0 2023-12-21
307
308### Breaking changes
309* The legacy libraries named HLSL and OGLCompiler have been removed. To avoid future disruptions, please use cmake's find_package mechanism rather than hardcoding library dependencies.
310* Only the headers that are part of glslang's public interface are included in the install target.
311* Remove OVERRIDE_MSVCCRT cmake option.
312
313### Other changes
314* Fix spv_options initialization
315* Fix line number for OpDebugFunction and OpDebugScope for function
316* Fix SPV_KHR_cooperative_matrix enumerants
317* Fix nullptr crash
318* Fix GL_ARB_shader_storage_buffer_object version
319* Fix interpolant ES error
320* Generate DebugValue for constant arguments
321* Overflow/underflow out-of-range floats to infinity/0.0 respectively
322* Support SV_ViewID keywords for HLSL
323* Implement relaxed rule for opaque struct members
324* Add BUILD_WERROR cmake option
325* Add GLSLANG_TESTS cmake option
326* Always generate OpDebugBasicType for bool type
327* Fix GLSL parsing of '#' when not preceded by space or tab
328* Fix GL_ARB_bindless_texture availability
329* Support GL_EXT_draw_instanced extension
330* Support GL_EXT_texture_array extension
331* Fix conversion of 64-bit unsigned integer constants to bool
332* Output 8-bit and 16-bit capabilities when appropriate for OpSpecConstant
333
334## 13.1.1 2023-10-16
335* Initialize compile_only field in C interface
336
337## 13.1.0 2023-10-13
338* Support GL_EXT_texture_shadow_lod
339* Support GL_NV_displacement_micromap
340* Fix ByteAddressBuffer when used a function parameter
341* Add more verbose messages if SPIRV-Tools is not found
342* Fix names for explicitly sized types when emitting nonsemantic debug info
343* Emit error for r-value arguments in atomic memory operations
344* Add --no-link option
345* Beautify preprocessor output format
346* Fix race condition in glslangValidator
347* Only set LocalSizeId mode when necessary
348* Don't emit invalid debug info for buffer references
349
350## 13.0.0 2023-08-23
351
352### Breaking changes
353* Simplify PoolAlloc via thread_local
354  * Remove InitializeDLL functions
355  * Remove OSDependent TLS functions
356* Remove GLSLANG_WEB and GLSLANG_WEB_DEVEL code paths
357
358### Other changes
359* Raise CMAKE minimum to 3.17.2
360* Support GL_KHR_cooperative_matrix 
361* Support GL_QCOM_image_processing_support
362* Support outputting each module to a filename with spirv-remap
363* Generate an error when gl_PrimitiveShaderRateEXT is used without enabling the extension
364* Improve layout checking when GL_EXT_spirv_intrinsics is enabled
365
366## 12.3.1 2023-07-20
367
368### Other changes
369* Improve backward compatibility for glslangValidator rename on Windows
370
371## 12.3.0 2023-07-19
372
373### Other changes
374* Rename glslangValidator to glslang and create glslangValidator symlink
375* Support HLSL binary literals
376* Add missing initialization members for web
377* Improve push_constant upgrading
378* Fix race condition in spirv remap
379* Support pre and post HLSL qualifier validation
380* Force generateDebugInfo when non-semantic debug info is enabled
381* Exit with error if output file cannot be written
382* Fix struct member buffer reference decorations
383
384## 12.2.0 2023-05-17
385
386### Other changes
387* Support GLSL_EXT_shader_tile_image
388* Support GL_EXT_ray_tracing_position_fetch
389* Support custom include callbacks via the C API
390* Add preamble-text command-line option
391* Accept variables as parameters of spirv_decorate_id
392* Fix generation of conditionals with a struct result
393* Fix double expansion of macros
394* Fix DebugCompilationUnit scope
395* Improve line information
396
397## 12.1.0 2023-03-21
398
399### Other changes
400* Reject non-float inputs/outputs for version less than 120
401* Fix invalid BufferBlock decoration for SPIR-V 1.3 and above
402* Add HLSL relaxed-precision float/int matrix expansions
403* Block decorate Vulkan structs with RuntimeArrays
404* Support InterlockedAdd on float types
405
406## 12.0.0 2023-01-18
407
408### Breaking changes
409* An ABI was accidentally broken in #3014. Consequently, we have incremented the major revision number.
410
411### Other changes
412* Add support for ARB_bindless_texture.
413* Add support for GL_NV_shader_invocation_reorder.
414* Fix const parameter debug types when using NonSemantic.Shader.DebugInfo.100.
415* Fix NonSemantic.Shader.DebugInfo.100 disassembly.
416* Fix MaxDualSourceDrawBuffersEXT usage.
417* Fix structure member reference crash.
418
419## 11.13.0 2022-12-06
420
421### Other changes
422* Make HelperInvocation accesses volatile for SPIR-V 1.6.
423* Improve forward compatibility of ResourceLimits interface 
424* Remove GLSLANG_ANGLE
425
426## 11.12.0 2022-10-12
427
428### Other changes
429* Update generator version
430* Add support for GL_EXT_mesh_shader
431* Add support for NonSemantic.Shader.DebugInfo.100
432* Make OpEmitMeshTasksEXT a terminal instruction
433* Make gl_SubGroupARB a flat in int in Vulkan
434* Add support for GL_EXT_opacity_micromap
435* Add preamble support to C interface
436
437## 11.11.0 2022-08-11
438
439### Other changes
440* Add OpSource support to C interface
441* Deprecate samplerBuffer for spirv1.6 and later
442* Add support for SPV_AMD_shader_early_and_late_fragment_tests
443
444## 11.10.0 2022-06-02
445
446### Other changes
447* Generate OpLine before OpFunction
448* Add support for VK_EXT_fragment_shader_barycentric
449* Add whitelist filtering for debug comments in SPIRV-Remap
450* Add support for GL_EXT_ray_cull_mask
451
452## 11.9.0 2022-04-06
453
454### Other changes
455* Add GLSL version override functionality
456* Add eliminate-dead-input-components to -Os
457* Add enhanced-msgs option
458* Explicitly use Python 3 for builds
459
460## 11.8.0 2022-01-27
461
462### Other changes
463* Add support for SPIR-V 1.6
464* Add support for Vulkan 1.3
465* Add --hlsl-dx-position-w option
466
467## 11.7.0 2021-11-11
468
469### Other changes
470* Add support for targeting Vulkan 1.2 in the C API
471
472## 11.6.0 2021-08-25
473
474### Other changes
475* Atomic memory function only for shader storage block member or shared variable
476* Add support for gl_MaxVaryingVectors for ogl
477* Fix loading bool arrays from interface blocks
478* Generate separate stores for partially swizzled memory stores
479* Allow layout(std430) uniform with GL_EXT_scalar_block_layout
480* Support for pragma STDGL invariant(all)
481* Support for GL_NV_ray_tracing_motion_blur
482
483## 11.5.0 2021-06-23
484
485### Other changes
486* Implement GLSL_EXT_shader_atomic_float2
487* Implement GL_EXT_spirv_intrinsics
488* Fixed SPIR-V remapper not remapping OpExtInst instruction set IDs
489* only declare compatibility gl_ variables in compatibility mode
490* Add support for float spec const vector initialization
491* Implement GL_EXT_subgroup_uniform_control_flow.
492* Fix arrays dimensioned with spec constant sized gl_WorkGroupSize
493* Add support for 64bit integer scalar and vector types to bitCount() builtin
494
495## 11.4.0 2021-04-22
496
497### Other changes
498* Fix to keep source compatible with CMake 3.10.2
499
500## 11.3.0 2021-04-21
501
502### Other changes
503* Added --depfile
504* Added --auto-sampled-textures
505* Now supports InterpolateAt-based functions
506* Supports cross-stage automatic IO mapping
507* Supports GL_EXT_vulkan_glsl_relaxed (-R option)
508
509## 11.2.0 2021-02-18
510
511### Other changes
512* Removed Python requirement when not building with spirv-tools
513* Add support for GL_EXT_shared_memory_block
514* Implement GL_EXT_null_initializer
515* Add CMake support for Fuschia
516
517## 11.1.0 2020-12-07
518
519### Other changes
520* Added ray-tracing extension support
521
522## 11.0.0 2020-07-20
523
524### Breaking changes
525
526#### Visual Studio 2013 is no longer supported
527
528[As scheduled](https://github.com/KhronosGroup/glslang/blob/9eef54b2513ca6b40b47b07d24f453848b65c0df/README.md#planned-deprecationsremovals),
529Microsoft Visual Studio 2013 is no longer officially supported. Please upgrade
530to at least Visual Studio 2015.
531
532## 10.15.3847 2020-07-20
533
534### Breaking changes
535
536* The following files have been removed:
537  * `glslang/include/revision.h`
538  * `glslang/include/revision.template`
539
540The `GLSLANG_MINOR_VERSION` and `GLSLANG_PATCH_LEVEL` defines have been removed
541from the public headers. \
542Instead each build script now uses the new `build_info.py`
543script along with the `build_info.h.tmpl` and this `CHANGES.md` file to generate
544the glslang build-time generated header `glslang/build_info.h`.
545
546The new public API to obtain the `glslang` version is `glslang::GetVersion()`.
547
548### Other changes
549* `glslang` shared objects produced by CMake are now `SONAME` versioned using
550   [Semantic Versioning 2.0.0](https://semver.org/).