Files
filament/third_party/glslang/Test/noMatchingFunction.frag
Mathias Agopian 538f497d4d update glslang to version 15.4.0
add a nicer script to update
2025-08-11 15:44:28 -07:00

20 lines
203 B
GLSL

#version 330
struct S
{
float a;
};
float func(S s)
{
return s.a;
}
layout(location = 0) out vec4 o_color;
void main()
{
float c = func(1.0f); // ERROR: no matching function
o_color = vec4(c);
}