bloat-buster/dependencies/glslang-15.0.0/Test/noMatchingFunction.frag
David Gonzalez Martin be2de1d672 Render a texture
2024-11-10 08:48:46 -06: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);
}