]> git.tdb.fi Git - libs/gl.git/commitdiff
Disallow specialization constants in certain contexts
authorMikko Rasa <tdb@tdb.fi>
Sun, 7 Nov 2021 12:32:33 +0000 (14:32 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sun, 7 Nov 2021 14:00:32 +0000 (16:00 +0200)
The initialization of a specialization constant must not use other
specialization constants.

Arrays sized by a specialization constant inside structures are broken
by design because member offsets in SPIR-V are required to be literals.
Changing the size through specialization would at best leave empty space
in the struct and at worst overlap other members.


No differences found