Handle buffer references vs 'const'
Allow constructors to and from references to be constant folded. Section 4.3.3 says constructors whose arguments are all constant expressions must fold. Disallow 'const' on buffer reference types. It is not a 'non-void transparent basic data type' (it is not considered 'basic'). Handle buffer reference constants (which can be assigned to a non-const reference, or can be further folded to another type of constant) by converting to 'constructor(uint64_t constant)' in addConversion. Disallow == and != operators on reference types.
This commit is contained in:
parent
d90d548161
commit
be63facd80
13 changed files with 1271 additions and 1099 deletions
|
|
@ -272,6 +272,8 @@ INSTANTIATE_TEST_CASE_P(
|
|||
"spv.bufferhandle13.frag",
|
||||
"spv.bufferhandle14.frag",
|
||||
"spv.bufferhandle15.frag",
|
||||
"spv.bufferhandle16.frag",
|
||||
"spv.bufferhandle17_Errors.frag",
|
||||
"spv.bufferhandle2.frag",
|
||||
"spv.bufferhandle3.frag",
|
||||
"spv.bufferhandle4.frag",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue