Files
filament/third_party/glslang/Test/spv.functionNestedOpaque.vert
Ben Doherty 0548b28535 Update glslang (#526)
* Update glslang

* Update builtinResource

* Add glslang update README
2018-11-27 09:52:03 -08:00

27 lines
254 B
GLSL

#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);
}