Selaa lähdekoodia

Remove warning for texture.get in compute shader. get will be turned into a .getLod instead soon.

clementlandrin 1 vuosi sitten
vanhempi
commit
a53cb313d0
1 muutettua tiedostoa jossa 0 lisäystä ja 3 poistoa
  1. 0 3
      hxsl/Checker.hx

+ 0 - 3
hxsl/Checker.hx

@@ -31,7 +31,6 @@ class Checker {
 	var curFun : TFunction;
 	var inLoop : Bool;
 	var inWhile : Bool;
-	var inCompute : Bool;
 	public var inits : Array<{ v : TVar, e : TExpr }>;
 
 	public function new() {
@@ -282,7 +281,6 @@ class Checker {
 			case "main": Main;
 			default: StringTools.startsWith(f.name,"__init__") ? Init : Helper;
 			}
-			inCompute = kind == Main;
 			if( args.length != 0 && kind != Helper )
 				error(kind+" function should have no argument", pos);
 			var fv : TVar = {
@@ -1039,7 +1037,6 @@ class Checker {
 			}
 			if( gl != null ) {
 				if( f == "get" && inWhile ) error("Cannot use .get() in while loop, use .getLod instead", pos);
-				if( f == "get" && inCompute ) warning("Cannot use .get() in a compute shader, use .getLod instead", pos);
 				g = globals.get(gl.toString());
 			}
 		}