SPV: Handle nested opaque types as function parameters.

This commit is contained in:
John Kessenich
2017-02-24 19:15:46 -07:00
parent 7491234713
commit 4a57dced66
5 changed files with 101 additions and 8 deletions

View File

@@ -0,0 +1,26 @@
#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);
}