You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#version 450
|
|
|
|
uniform struct S {
|
|
sampler2D s;
|
|
} si;
|
|
|
|
void foo(sampler2D t)
|
|
{
|
|
texture(t, vec2(0.5));
|
|
}
|
|
|
|
void barc(const S p)
|
|
{
|
|
foo(p.s);
|
|
}
|
|
|
|
void bar(S p)
|
|
{
|
|
foo(p.s);
|
|
}
|
|
|
|
void main()
|
|
{
|
|
barc(si);
|
|
bar(si);
|
|
}
|