1e84a379ff
Emit input struct assignment by assigning member by member from stage_in struct. Map qualified member name from pointer type, not base type. Add Comiler::expression_type_id() function, similar to expression_type().
17 lines
187 B
GLSL
17 lines
187 B
GLSL
#version 450
|
|
|
|
struct VOUT
|
|
{
|
|
vec4 a;
|
|
};
|
|
|
|
layout(location = 0) in VOUT Clip;
|
|
layout(location = 0) out vec4 FragColor;
|
|
|
|
void main()
|
|
{
|
|
VOUT tmp = Clip;
|
|
tmp.a += 1.0;
|
|
FragColor = tmp.a;
|
|
}
|