Versions in this module Expand all Collapse all v2 v2.0.7 Mar 14, 2021 Changes in this version + func IsValidSwizzling(s string) bool + type BasicType int + const Array + const Bool + const Float + const Int + const Mat2 + const Mat3 + const Mat4 + const None + const Struct + const Vec2 + const Vec3 + const Vec4 + type Block struct + LocalVarIndexOffset int + LocalVars []Type + Stmts []Stmt + type BuiltinFunc string + const Abs + const Acos + const Asin + const Atan + const Atan2 + const BoolF + const Cap + const Ceil + const Clamp + const Cos + const Cross + const Degrees + const Dfdx + const Dfdy + const Distance + const Dot + const Exp + const Exp2 + const Faceforward + const FloatF + const Floor + const Fract + const Fwidth + const IntF + const Inversesqrt + const Len + const Length + const Log + const Log2 + const Mat2F + const Mat3F + const Mat4F + const Max + const Min + const Mix + const Mod + const Normalize + const Pow + const Radians + const Reflect + const Sign + const Sin + const Smoothstep + const Sqrt + const Step + const Tan + const Texture2DF + const Transpose + const Vec2F + const Vec3F + const Vec4F + func ParseBuiltinFunc(str string) (BuiltinFunc, bool) + type ConstType int + const ConstTypeBool + const ConstTypeFloat + const ConstTypeInt + const ConstTypeNone + type Expr struct + BuiltinFunc BuiltinFunc + Const constant.Value + ConstType ConstType + Exprs []Expr + Index int + Op Op + Swizzling string + Type ExprType + type ExprType int + const Binary + const Blank + const BuiltinFuncExpr + const Call + const FieldSelector + const FunctionExpr + const Index + const LocalVariable + const NumberExpr + const Selection + const StructMember + const SwizzlingExpr + const TextureVariable + const Unary + const UniformVariable + type FragmentFunc struct + Block *Block + type Func struct + Block *Block + InParams []Type + Index int + OutParams []Type + Return Type + type Op string + const Add + const And + const AndAnd + const Div + const EqualOp + const GreaterThanEqualOp + const GreaterThanOp + const LeftShift + const LessThanEqualOp + const LessThanOp + const ModOp + const Mul + const NotEqualOp + const NotOp + const Or + const OrOr + const RightShift + const Sub + const Xor + func OpFromToken(t token.Token) (Op, bool) + type Program struct + Attributes []Type + FragmentFunc FragmentFunc + Funcs []Func + TextureNum int + UniformNames []string + Uniforms []Type + Varyings []Type + VertexFunc VertexFunc + func (p *Program) LocalVariableType(topBlock, block *Block, idx int) Type + type Stmt struct + Blocks []*Block + Exprs []Expr + ForDelta constant.Value + ForEnd constant.Value + ForInit constant.Value + ForOp Op + ForVarIndex int + ForVarType Type + InitIndex int + Type StmtType + type StmtType int + const Assign + const BlockStmt + const Break + const Continue + const Discard + const ExprStmt + const For + const If + const Init + const Return + type Type struct + Length int + Main BasicType + Sub []Type + func (t *Type) Equal(rhs *Type) bool + func (t *Type) FloatNum() int + func (t *Type) String() string + type VertexFunc struct + Block *Block