Grigory Dzhavadyan 4c9876b34c Add names for composite constants in SPIR-V
Consider the following code:

    layout(constant_id=0) const int Y = 1;
    layout(constant_id=1) const int Z = 2;
    layout(constant_id=3) const int X = Y + Z;

Previously, it would produce SPIR-V decorations like this:

    Decorate 21(Y) SpecId 1
    Decorate 22 SpecId 3
    Decorate 33(Z) SpecId 0

This seems inaccurate, since the spec constant `X` that is dependent on
the two others did not get a name in the SPIR-V decorations. This behavior
may potentially negatively affect shader introspection capabilities.

This change alters the behavior to always add a name, which results in the code
above producing the following decorations:

    Decorate 21(Y) SpecId 1
    Decorate 22(X) SpecId 3
    Decorate 33(Z) SpecId 0
2018-11-02 00:45:12 -07:00
..
2016-03-03 12:12:07 -05:00
2018-08-07 03:16:20 +09:00
2016-07-19 15:13:47 -06:00
2014-04-14 16:14:30 +00:00
2017-07-23 13:54:15 -06:00
2017-07-23 13:54:15 -06:00
2017-07-23 13:54:15 -06:00
2017-07-23 13:54:15 -06:00
2017-07-23 13:54:15 -06:00
2018-08-07 03:16:20 +09:00
2018-08-07 03:16:20 +09:00
2017-07-23 11:49:42 -06:00
2018-08-07 03:16:20 +09:00
2018-08-07 03:25:35 +09:00
2018-08-07 03:16:20 +09:00
2018-08-07 03:16:20 +09:00
2015-06-26 10:48:26 -06:00
2018-08-07 03:16:20 +09:00
2016-11-21 18:25:08 -07:00
2018-08-07 03:16:20 +09:00
2018-08-07 03:16:20 +09:00
2017-08-23 14:33:31 -06:00
2017-06-26 17:52:22 -06:00
2018-08-07 03:16:20 +09:00
2018-08-07 03:16:20 +09:00
2018-08-07 03:16:20 +09:00
2017-03-03 18:19:03 -07:00
2018-08-07 03:16:20 +09:00
2018-08-07 03:16:20 +09:00
2017-10-22 23:17:18 -06:00
2013-11-12 03:31:24 +00:00
2018-08-07 03:16:20 +09:00
2013-11-12 03:31:24 +00:00
2018-08-07 03:16:20 +09:00
2018-08-07 03:16:20 +09:00
2018-08-07 03:16:20 +09:00
2018-08-07 03:16:20 +09:00
2018-08-07 03:16:20 +09:00
2018-08-07 03:16:20 +09:00
2018-04-23 15:17:21 -06:00
2018-08-07 03:16:20 +09:00