SPV: Handle nested opaque types as function parameters.
This commit is contained in:
parent
7491234713
commit
4a57dced66
5 changed files with 101 additions and 8 deletions
26
Test/spv.functionNestedOpaque.vert
Executable file
26
Test/spv.functionNestedOpaque.vert
Executable 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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue