mirror of
https://github.com/RPCS3/glslang.git
synced 2024-12-30 15:13:45 +00:00
27 lines
254 B
GLSL
Executable File
27 lines
254 B
GLSL
Executable File
#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);
|
|
}
|