浏览代码

hxsl operation between to ivec of the same size are now possible. The output is the operation done coefficient wise.

borisrp 3 周之前
父节点
当前提交
f30d46dc65
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      hxsl/Checker.hx

+ 1 - 0
hxsl/Checker.hx

@@ -1359,6 +1359,7 @@ class Checker {
 			case [_, TInt, TFloat]: toFloat(e1); TFloat;
 			case [_, TFloat, TInt]: toFloat(e2); TFloat;
 			case [_, TVec(a,VFloat), TVec(b,VFloat)] if( a == b ): TVec(a,VFloat);
+			case [_, TVec(a,VInt), TVec(b,VInt)] if( a == b ): TVec(a,VInt);
 			case [_, TFloat, TVec(_,VFloat)]: e2.t;
 			case [_, TVec(_,VFloat), TFloat]: e1.t;
 			case [_, TInt, TVec(_, VFloat)]: toFloat(e1); e2.t;