mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 20:18:59 +01:00
internal/shaderir: fix type mismatches
This commit is contained in:
parent
493db3baf3
commit
4a964da0aa
@ -1019,8 +1019,8 @@ in vec2 V1;`,
|
|||||||
FragmentFunc: shaderir.FragmentFunc{
|
FragmentFunc: shaderir.FragmentFunc{
|
||||||
Block: block(
|
Block: block(
|
||||||
[]shaderir.Type{
|
[]shaderir.Type{
|
||||||
|
{Main: shaderir.Vec4},
|
||||||
{Main: shaderir.Float},
|
{Main: shaderir.Float},
|
||||||
{Main: shaderir.Vec2},
|
|
||||||
},
|
},
|
||||||
3,
|
3,
|
||||||
assignStmt(
|
assignStmt(
|
||||||
@ -1032,7 +1032,12 @@ in vec2 V1;`,
|
|||||||
localVariableExpr(1),
|
localVariableExpr(1),
|
||||||
),
|
),
|
||||||
returnStmt(
|
returnStmt(
|
||||||
localVariableExpr(2),
|
callExpr(
|
||||||
|
builtinFuncExpr(shaderir.Vec4F),
|
||||||
|
localVariableExpr(2),
|
||||||
|
localVariableExpr(1),
|
||||||
|
localVariableExpr(1),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
@ -1058,11 +1063,11 @@ in vec2 V1;
|
|||||||
vec4 F0(in vec4 l0, in float l1, in vec2 l2);
|
vec4 F0(in vec4 l0, in float l1, in vec2 l2);
|
||||||
|
|
||||||
vec4 F0(in vec4 l0, in float l1, in vec2 l2) {
|
vec4 F0(in vec4 l0, in float l1, in vec2 l2) {
|
||||||
float l3 = float(0);
|
vec4 l3 = vec4(0);
|
||||||
vec2 l4 = vec2(0);
|
float l4 = float(0);
|
||||||
l3 = l0;
|
l3 = l0;
|
||||||
l4 = l1;
|
l4 = l1;
|
||||||
return l2;
|
return vec4(l2, l1, l1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void main(void) {
|
void main(void) {
|
||||||
|
Loading…
Reference in New Issue
Block a user