ShaderTools.Hlsl.Binding.SemanticFacts.IsArithmetic C# (CSharp) Method

IsArithmetic() public static method

public static IsArithmetic ( this op ) : bool
op this
return bool
        public static bool IsArithmetic(this BinaryOperatorKind op)
        {
            switch (op)
            {
                case BinaryOperatorKind.Multiply:
                case BinaryOperatorKind.Divide:
                case BinaryOperatorKind.Modulo:
                case BinaryOperatorKind.Add:
                case BinaryOperatorKind.Subtract:
                    return true;
                default:
                    return false;
            }
        }