GLSL/SPV: Fix #1900: Drop const on literal when doing an object copy.
This commit is contained in:
parent
f7a48b153f
commit
c2fafea970
3 changed files with 36 additions and 6 deletions
|
|
@ -22,12 +22,12 @@ void main()
|
|||
nonuniformEXT const int nu_ci = 2; // ERROR, const
|
||||
|
||||
foo(nu_li, nu_li);
|
||||
|
||||
int table[5];
|
||||
int a;
|
||||
nu_li = nonuniformEXT(a) + nonuniformEXT(a * 2);
|
||||
nu_li = nonuniformEXT(a, a); // ERROR, too many arguments
|
||||
nu_li = nonuniformEXT(); // ERROR, no arguments
|
||||
nu_li = table[nonuniformEXT(3)];
|
||||
}
|
||||
|
||||
layout(location=1) in struct S { float a; nonuniformEXT float b; } ins; // ERROR, not on member
|
||||
layout(location=3) in inbName { float a; nonuniformEXT float b; } inb; // ERROR, not on member
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue