bgfx/3rdparty/glslang/Test/spv.functionNestedOpaque.vert

27 lines
254 B
GLSL
Raw Normal View History

2017-02-25 06:28:48 +03:00
#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);
}