xref: /third_party/glslang/Test/spv.multiStructFuncall.frag
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/glslang/Test/
1617a3babSopenharmony_ci#version 450
2617a3babSopenharmony_ci
3617a3babSopenharmony_cistruct S { mat4 m; };
4617a3babSopenharmony_cibuffer blockName { S s1; };  // need an S with decoration
5617a3babSopenharmony_ciS s2;                        // no decorations on S
6617a3babSopenharmony_ci
7617a3babSopenharmony_civoid fooConst(const in S s) { }
8617a3babSopenharmony_civoid foo(in S s) { }
9617a3babSopenharmony_civoid fooOut(inout S s) { }
10617a3babSopenharmony_ci
11617a3babSopenharmony_civoid main()
12617a3babSopenharmony_ci{
13617a3babSopenharmony_ci  fooConst(s1);
14617a3babSopenharmony_ci  fooConst(s2);
15617a3babSopenharmony_ci
16617a3babSopenharmony_ci  foo(s1);
17617a3babSopenharmony_ci  foo(s2);
18617a3babSopenharmony_ci
19617a3babSopenharmony_ci  fooOut(s1);
20617a3babSopenharmony_ci  fooOut(s2);
21617a3babSopenharmony_ci}

Indexes created Thu Nov 07 10:32:03 CST 2024