mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-13 21:50:06 +00:00
11c24e9adb
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
18 lines
162 B
GLSL
18 lines
162 B
GLSL
#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);
|
|
}
|
|
|