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

IsFloat() public static method

public static IsFloat ( this scalarType ) : bool
scalarType this
return bool
        public static bool IsFloat(this ScalarType scalarType)
        {
            switch (scalarType)
            {
                case ScalarType.Half:
                case ScalarType.Float:
                case ScalarType.Double:
                case ScalarType.Min16Float:
                case ScalarType.Min10Float:
                    return true;
                default:
                    return false;
            }
        }
    }