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

IsIntegral() public static method

public static IsIntegral ( this scalarType ) : bool
scalarType this
return bool
        public static bool IsIntegral(this ScalarType scalarType)
        {
            switch (scalarType)
            {
                case ScalarType.Bool:
                case ScalarType.Int:
                case ScalarType.Uint:
                case ScalarType.Min16Int:
                case ScalarType.Min12Int:
                case ScalarType.Min16Uint:
                    return true;
                default:
                    return false;
            }
        }