From: Mikko Rasa Date: Sun, 7 Nov 2021 12:32:33 +0000 (+0200) Subject: Disallow specialization constants in certain contexts X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=2e9d0beaafa8220d8a917749c8a12beaf4718729;hp=2e9d0beaafa8220d8a917749c8a12beaf4718729;p=libs%2Fgl.git Disallow specialization constants in certain contexts 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. ---