SPIRV-Cross/reference/opt/shaders/asm/comp
Grigory Dzhavadyan a5d82d1138 Alter the handling of spec consts in non-Vulkan GLSL
Previously, when generating non-Vulkan GLSL, each use of a spec constant
would be subsituted for its default value and the declaration of the constant
itself would be omitted completely.

This change slightly alters this behavior. The uses of the constant are kept,
as well as the declaration, although the latter is stripped of the layout
qualifier. The declaration is also prepended with the following code:

    #ifndef <constant name>_value
    #define <constant name> <default constant value>
    #endif

and the constant itself now looks like

    const <constant type> <constant name> = <constant name>_value;

The rationale for this change is that it gives the user a way to provide
custom values for specialization constants even when the target does not
support them.
2018-11-01 00:39:09 -07:00
..
atomic-decrement.asm.comp Update glslang and SPIRV-Tools. 2018-09-27 11:10:22 +02:00
atomic-increment.asm.comp Update glslang and SPIRV-Tools. 2018-09-27 11:10:22 +02:00
bitcast_iadd.asm.comp Add reference output for --opt. 2017-11-23 09:50:11 +01:00
bitcast_iequal.asm.comp Expand the implementation of inherit_expression_dependencies. 2018-03-09 13:21:38 +01:00
bitcast_sar.asm.comp Expand the implementation of inherit_expression_dependencies. 2018-03-09 13:21:38 +01:00
bitcast_sdiv.asm.comp Expand the implementation of inherit_expression_dependencies. 2018-03-09 13:21:38 +01:00
bitcast_slr.asm.comp Expand the implementation of inherit_expression_dependencies. 2018-03-09 13:21:38 +01:00
builtin-compute-bitcast.asm.comp Bitcast loads from builtin compute variables. 2018-09-11 09:43:28 +02:00
global-parameter-name-alias.asm.comp MSL: Fix naming issue of aliased global variables. 2018-08-27 09:59:55 +02:00
hlsl-functionality.asm.comp Add test shader which uses counter buffer extension. 2018-04-04 12:56:34 +02:00
logical.asm.comp Add reference output for --opt. 2017-11-23 09:50:11 +01:00
multiple-entry.asm.comp Add reference output for --opt. 2017-11-23 09:50:11 +01:00
quantize.asm.comp Add reference output for --opt. 2017-11-23 09:50:11 +01:00
specialization-constant-workgroup.asm.comp Alter the handling of spec consts in non-Vulkan GLSL 2018-11-01 00:39:09 -07:00
storage-buffer-basic.invalid.asm.comp Alter the handling of spec consts in non-Vulkan GLSL 2018-11-01 00:39:09 -07:00
switch-break-ladder.asm.comp Deal with switch cases which break out of a loop. 2018-09-18 10:50:48 +02:00