• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#version 450
2
3uniform struct S {
4     sampler2D s;
5} si;
6
7void foo(sampler2D t)
8{
9    texture(t, vec2(0.5));
10}
11
12void barc(const S p)
13{
14    foo(p.s);
15}
16
17void bar(S p)
18{
19    foo(p.s);
20}
21
22void main()
23{
24    barc(si);
25    bar(si);
26}
27