• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1struct A {
2    layout(binding = 1) int x;  // Not allowed
3    layout(set = 0) int y;      // Not allowed
4};
5
6A a;
7
8void main(){
9    a.x++;
10}
11/*%%*
12layout qualifier 'binding' is not permitted on a struct field
13layout qualifier 'set' is not permitted on a struct field
14*%%*/
15