68f0257f26
This makes it easier to debug codegen for these shaders.
22 lines
279 B
GLSL
22 lines
279 B
GLSL
#version 450
|
|
|
|
layout(location = 0) flat in int vA;
|
|
layout(location = 0) out vec4 FragColor;
|
|
|
|
vec4 foobar(int a)
|
|
{
|
|
if (a < 0)
|
|
{
|
|
discard;
|
|
}
|
|
return vec4(10.0);
|
|
}
|
|
|
|
void main()
|
|
{
|
|
int param = vA;
|
|
vec4 _31 = foobar(param);
|
|
FragColor = vec4(10.0);
|
|
}
|
|
|