Do true SPV type check for function array arg linkage
Previous check was missing type difference between uniform array actual arg with stride decoration and the formal arg without. Now does logical or component-wise copy where needed. Fixes #2637
This commit is contained in:
17
Test/spv.1.4.funcall.array.frag
Normal file
17
Test/spv.1.4.funcall.array.frag
Normal file
@@ -0,0 +1,17 @@
|
||||
#version 450 core
|
||||
|
||||
uniform ub {
|
||||
vec4 u[9];
|
||||
};
|
||||
|
||||
vec4 f(const vec4 a[9], int ix) {
|
||||
return a[ix];
|
||||
}
|
||||
|
||||
out vec4 color;
|
||||
|
||||
void main()
|
||||
{
|
||||
color = f(u, 2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user