shaderir: Remove and rename some builtin functions

Apparently matrixCompMult and outerProduct are not portable.

We adopted the naming rule foobar instead of fooBar.
This commit is contained in:
Hajime Hoshi 2020-07-11 21:42:50 +09:00
parent f13fe331fb
commit 776de77744

View File

@ -237,15 +237,13 @@ const (
Normalize BuiltinFunc = "normalize" Normalize BuiltinFunc = "normalize"
Faceforward BuiltinFunc = "faceforward" Faceforward BuiltinFunc = "faceforward"
Reflect BuiltinFunc = "reflect" Reflect BuiltinFunc = "reflect"
MatrixCompMult BuiltinFunc = "matrixCompMult"
OuterProduct BuiltinFunc = "outerProduct"
Transpose BuiltinFunc = "transpose" Transpose BuiltinFunc = "transpose"
LessThan BuiltinFunc = "lessThan" LessThan BuiltinFunc = "lessthan"
LessThanEqual BuiltinFunc = "lessThanEqual" LessThanEqual BuiltinFunc = "lessthanequal"
GreaterThan BuiltinFunc = "greaterThan" GreaterThan BuiltinFunc = "greaterthan"
GreaterThanEqual BuiltinFunc = "greaterThanEqual" GreaterThanEqual BuiltinFunc = "greaterthanequal"
Equal BuiltinFunc = "equal" Equal BuiltinFunc = "equal"
NotEqual BuiltinFunc = "notEqual" NotEqual BuiltinFunc = "notequal"
Any BuiltinFunc = "any" Any BuiltinFunc = "any"
All BuiltinFunc = "all" All BuiltinFunc = "all"
Not BuiltinFunc = "not" Not BuiltinFunc = "not"
@ -294,8 +292,6 @@ func ParseBuiltinFunc(str string) (BuiltinFunc, bool) {
Normalize, Normalize,
Faceforward, Faceforward,
Reflect, Reflect,
MatrixCompMult,
OuterProduct,
Transpose, Transpose,
LessThan, LessThan,
LessThanEqual, LessThanEqual,