Pārlūkot izejas kodu

SmoothStep should be Smoothstep (#307)

Mark Knol 7 gadi atpakaļ
vecāks
revīzija
a4b12d1a21
2 mainītis faili ar 4 papildinājumiem un 4 dzēšanām
  1. 2 2
      hxsl/Ast.hx
  2. 2 2
      hxsl/Checker.hx

+ 2 - 2
hxsl/Ast.hx

@@ -185,7 +185,7 @@ enum TGlobal {
 	Clamp;
 	Mix;
 	Step;
-	SmoothStep;
+	Smoothstep;
 	Length;
 	Distance;
 	Dot;
@@ -521,4 +521,4 @@ class Tools4 {
 		return Printer.toString(e);
 	}
 
-}
+}

+ 2 - 2
hxsl/Checker.hx

@@ -91,7 +91,7 @@ class Checker {
 						r.push( { args : [ { name : "edge", type : TFloat }, { name : "x", type : t } ], ret : t } );
 				}
 				r;
-			case SmoothStep:
+			case Smoothstep:
 				var r = [];
 				for( t in genType ) {
 					r.push( { args : [ { name : "edge0", type : t }, { name : "edge1", type : t }, { name : "x", type : t } ], ret : t } );
@@ -1046,4 +1046,4 @@ class Checker {
 			error("Unsupported operator " + op, pos);
 		}
 	}
-}
+}