mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 12:08:58 +01:00
shaderir: Remove bultin functions for bvec
This commit is contained in:
parent
fb59901609
commit
c22ec580bc
@ -65,16 +65,6 @@ func basicTypeString(t shaderir.BasicType) string {
|
|||||||
|
|
||||||
func builtinFuncString(f shaderir.BuiltinFunc) string {
|
func builtinFuncString(f shaderir.BuiltinFunc) string {
|
||||||
switch f {
|
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:
|
case shaderir.Dfdx:
|
||||||
return "dFdx"
|
return "dFdx"
|
||||||
case shaderir.Dfdy:
|
case shaderir.Dfdy:
|
||||||
|
@ -196,60 +196,51 @@ func OpFromToken(t token.Token) (Op, bool) {
|
|||||||
type BuiltinFunc string
|
type BuiltinFunc string
|
||||||
|
|
||||||
const (
|
const (
|
||||||
Vec2F BuiltinFunc = "vec2"
|
Vec2F BuiltinFunc = "vec2"
|
||||||
Vec3F BuiltinFunc = "vec3"
|
Vec3F BuiltinFunc = "vec3"
|
||||||
Vec4F BuiltinFunc = "vec4"
|
Vec4F BuiltinFunc = "vec4"
|
||||||
Mat2F BuiltinFunc = "mat2"
|
Mat2F BuiltinFunc = "mat2"
|
||||||
Mat3F BuiltinFunc = "mat3"
|
Mat3F BuiltinFunc = "mat3"
|
||||||
Mat4F BuiltinFunc = "mat4"
|
Mat4F BuiltinFunc = "mat4"
|
||||||
Radians BuiltinFunc = "radians"
|
Radians BuiltinFunc = "radians"
|
||||||
Degrees BuiltinFunc = "degrees"
|
Degrees BuiltinFunc = "degrees"
|
||||||
Sin BuiltinFunc = "sin"
|
Sin BuiltinFunc = "sin"
|
||||||
Cos BuiltinFunc = "cos"
|
Cos BuiltinFunc = "cos"
|
||||||
Tan BuiltinFunc = "tan"
|
Tan BuiltinFunc = "tan"
|
||||||
Asin BuiltinFunc = "asin"
|
Asin BuiltinFunc = "asin"
|
||||||
Acos BuiltinFunc = "acos"
|
Acos BuiltinFunc = "acos"
|
||||||
Atan BuiltinFunc = "atan"
|
Atan BuiltinFunc = "atan"
|
||||||
Pow BuiltinFunc = "pow"
|
Pow BuiltinFunc = "pow"
|
||||||
Exp BuiltinFunc = "exp"
|
Exp BuiltinFunc = "exp"
|
||||||
Log BuiltinFunc = "log"
|
Log BuiltinFunc = "log"
|
||||||
Exp2 BuiltinFunc = "exp2"
|
Exp2 BuiltinFunc = "exp2"
|
||||||
Log2 BuiltinFunc = "log2"
|
Log2 BuiltinFunc = "log2"
|
||||||
Sqrt BuiltinFunc = "sqrt"
|
Sqrt BuiltinFunc = "sqrt"
|
||||||
Inversesqrt BuiltinFunc = "inversesqrt"
|
Inversesqrt BuiltinFunc = "inversesqrt"
|
||||||
Abs BuiltinFunc = "abs"
|
Abs BuiltinFunc = "abs"
|
||||||
Sign BuiltinFunc = "sign"
|
Sign BuiltinFunc = "sign"
|
||||||
Floor BuiltinFunc = "floor"
|
Floor BuiltinFunc = "floor"
|
||||||
Ceil BuiltinFunc = "ceil"
|
Ceil BuiltinFunc = "ceil"
|
||||||
Fract BuiltinFunc = "fract"
|
Fract BuiltinFunc = "fract"
|
||||||
Mod BuiltinFunc = "mod"
|
Mod BuiltinFunc = "mod"
|
||||||
Min BuiltinFunc = "min"
|
Min BuiltinFunc = "min"
|
||||||
Max BuiltinFunc = "max"
|
Max BuiltinFunc = "max"
|
||||||
Clamp BuiltinFunc = "clamp"
|
Clamp BuiltinFunc = "clamp"
|
||||||
Mix BuiltinFunc = "mix"
|
Mix BuiltinFunc = "mix"
|
||||||
Step BuiltinFunc = "step"
|
Step BuiltinFunc = "step"
|
||||||
Smoothstep BuiltinFunc = "smoothstep"
|
Smoothstep BuiltinFunc = "smoothstep"
|
||||||
Length BuiltinFunc = "length"
|
Length BuiltinFunc = "length"
|
||||||
Distance BuiltinFunc = "distance"
|
Distance BuiltinFunc = "distance"
|
||||||
Dot BuiltinFunc = "dot"
|
Dot BuiltinFunc = "dot"
|
||||||
Cross BuiltinFunc = "cross"
|
Cross BuiltinFunc = "cross"
|
||||||
Normalize BuiltinFunc = "normalize"
|
Normalize BuiltinFunc = "normalize"
|
||||||
Faceforward BuiltinFunc = "faceforward"
|
Faceforward BuiltinFunc = "faceforward"
|
||||||
Reflect BuiltinFunc = "reflect"
|
Reflect BuiltinFunc = "reflect"
|
||||||
Transpose BuiltinFunc = "transpose"
|
Transpose BuiltinFunc = "transpose"
|
||||||
LessThan BuiltinFunc = "lessthan"
|
Texture2DF BuiltinFunc = "texture2D"
|
||||||
LessThanEqual BuiltinFunc = "lessthanequal"
|
Dfdx BuiltinFunc = "dfdx"
|
||||||
GreaterThan BuiltinFunc = "greaterthan"
|
Dfdy BuiltinFunc = "dfdy"
|
||||||
GreaterThanEqual BuiltinFunc = "greaterthanequal"
|
Fwidth BuiltinFunc = "fwidth"
|
||||||
Equal BuiltinFunc = "equal"
|
|
||||||
NotEqual BuiltinFunc = "notequal"
|
|
||||||
Any BuiltinFunc = "any"
|
|
||||||
All BuiltinFunc = "all"
|
|
||||||
Not BuiltinFunc = "not"
|
|
||||||
Texture2DF BuiltinFunc = "texture2D"
|
|
||||||
Dfdx BuiltinFunc = "dfdx"
|
|
||||||
Dfdy BuiltinFunc = "dfdy"
|
|
||||||
Fwidth BuiltinFunc = "fwidth"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func ParseBuiltinFunc(str string) (BuiltinFunc, bool) {
|
func ParseBuiltinFunc(str string) (BuiltinFunc, bool) {
|
||||||
@ -295,15 +286,6 @@ func ParseBuiltinFunc(str string) (BuiltinFunc, bool) {
|
|||||||
Faceforward,
|
Faceforward,
|
||||||
Reflect,
|
Reflect,
|
||||||
Transpose,
|
Transpose,
|
||||||
LessThan,
|
|
||||||
LessThanEqual,
|
|
||||||
GreaterThan,
|
|
||||||
GreaterThanEqual,
|
|
||||||
Equal,
|
|
||||||
NotEqual,
|
|
||||||
Any,
|
|
||||||
All,
|
|
||||||
Not,
|
|
||||||
Texture2DF,
|
Texture2DF,
|
||||||
Dfdx,
|
Dfdx,
|
||||||
Dfdy,
|
Dfdy,
|
||||||
|
Loading…
Reference in New Issue
Block a user