SPIRV-Cross/reference/opt/shaders/vulkan/frag
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
..
combined-texture-sampler-shadow.vk.frag Add reference output for --opt. 2017-11-23 09:50:11 +01:00
combined-texture-sampler-shadow.vk.frag.vk Add reference output for --opt. 2017-11-23 09:50:11 +01:00
combined-texture-sampler.vk.frag Add reference output for --opt. 2017-11-23 09:50:11 +01:00
combined-texture-sampler.vk.frag.vk Add reference output for --opt. 2017-11-23 09:50:11 +01:00
desktop-mediump.vk.frag Support mediump in desktop Vulkan GLSL. 2017-12-06 10:25:58 +01:00
desktop-mediump.vk.frag.vk Support mediump in desktop Vulkan GLSL. 2017-12-06 10:25:58 +01:00
input-attachment-ms.vk.frag Add reference output for --opt. 2017-11-23 09:50:11 +01:00
input-attachment-ms.vk.frag.vk Add reference output for --opt. 2017-11-23 09:50:11 +01:00
input-attachment.vk.frag Add reference output for --opt. 2017-11-23 09:50:11 +01:00
input-attachment.vk.frag.vk Add reference output for --opt. 2017-11-23 09:50:11 +01:00
push-constant.vk.frag Add reference output for --opt. 2017-11-23 09:50:11 +01:00
push-constant.vk.frag.vk Add reference output for --opt. 2017-11-23 09:50:11 +01:00
separate-combined-fake-overload.vk.frag Deal with fake overloads when using combined image samplers. 2018-05-02 10:36:00 +02:00
separate-combined-fake-overload.vk.frag.vk Deal with fake overloads when using combined image samplers. 2018-05-02 10:36:00 +02:00
separate-sampler-texture-array.vk.frag Add new tests for combined arrays of sampler + image. 2018-04-23 12:28:05 +02:00
separate-sampler-texture-array.vk.frag.vk Add new tests for combined arrays of sampler + image. 2018-04-23 12:28:05 +02:00
separate-sampler-texture.vk.frag Update tests for latest SPIRV-Tools and glslang. 2018-03-12 15:11:55 +01:00
separate-sampler-texture.vk.frag.vk Update tests for latest SPIRV-Tools and glslang. 2018-03-12 15:11:55 +01:00
spec-constant-block-size.vk.frag Alter the handling of spec consts in non-Vulkan GLSL 2018-11-01 00:39:09 -07:00
spec-constant-block-size.vk.frag.vk Support spec constant array size in blocks. 2018-02-23 15:11:45 +01:00
spec-constant-ternary.vk.frag Alter the handling of spec consts in non-Vulkan GLSL 2018-11-01 00:39:09 -07:00
spec-constant-ternary.vk.frag.vk Support ternary expressions in OpSpecConstantOp. 2018-06-25 09:49:13 +02:00