浏览代码

"sample" not allowed in JS shaders (#1038)

Nick 3 年之前
父节点
当前提交
825dfbec60
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hxsl/GlslOut.hx

+ 1 - 1
hxsl/GlslOut.hx

@@ -4,7 +4,7 @@ import hxsl.Ast;
 class GlslOut {
 
 	static var KWD_LIST = [
-		"input", "output", "discard",
+		"input", "output", "discard", #if js "sample", #end
 		"dvec2", "dvec3", "dvec4", "hvec2", "hvec3", "hvec4", "fvec2", "fvec3", "fvec4",
 		"int", "float", "bool", "long", "short", "double", "half", "fixed", "unsigned", "superp",
 		"lowp", "mediump", "highp", "precision", "invariant", "discard",