shaderir: Remove bultin functions for bvec

This commit is contained in:
Hajime Hoshi 2020-08-05 01:41:06 +09:00
parent fb59901609
commit c22ec580bc
2 changed files with 45 additions and 73 deletions

View File

@ -65,16 +65,6 @@ func basicTypeString(t shaderir.BasicType) string {
func builtinFuncString(f shaderir.BuiltinFunc) string {
switch f {
case shaderir.LessThan:
return "lessThan"
case shaderir.LessThanEqual:
return "lessThanEqual"
case shaderir.GreaterThan:
return "greaterThan"
case shaderir.GreaterThanEqual:
return "greaterThanEqual"
case shaderir.NotEqual:
return "notEqual"
case shaderir.Dfdx:
return "dFdx"
case shaderir.Dfdy:

View File

@ -237,15 +237,6 @@ const (
Faceforward BuiltinFunc = "faceforward"
Reflect BuiltinFunc = "reflect"
Transpose BuiltinFunc = "transpose"
LessThan BuiltinFunc = "lessthan"
LessThanEqual BuiltinFunc = "lessthanequal"
GreaterThan BuiltinFunc = "greaterthan"
GreaterThanEqual BuiltinFunc = "greaterthanequal"
Equal BuiltinFunc = "equal"
NotEqual BuiltinFunc = "notequal"
Any BuiltinFunc = "any"
All BuiltinFunc = "all"
Not BuiltinFunc = "not"
Texture2DF BuiltinFunc = "texture2D"
Dfdx BuiltinFunc = "dfdx"
Dfdy BuiltinFunc = "dfdy"
@ -295,15 +286,6 @@ func ParseBuiltinFunc(str string) (BuiltinFunc, bool) {
Faceforward,
Reflect,
Transpose,
LessThan,
LessThanEqual,
GreaterThan,
GreaterThanEqual,
Equal,
NotEqual,
Any,
All,
Not,
Texture2DF,
Dfdx,
Dfdy,