1 #version 450 2 3 struct S { mat4 m; }; 4 buffer blockName { S s1; }; // need an S with decoration 5 S s2; // no decorations on S 6 7 void fooConst(const in S s) { } 8 void foo(in S s) { } 9 void fooOut(inout S s) { } 10 11 void main() 12 { 13 fooConst(s1); 14 fooConst(s2); 15 16 foo(s1); 17 foo(s2); 18 19 fooOut(s1); 20 fooOut(s2); 21 }