HLSL can index arrays using operator[] with non-integer types, and inserts a conversion to a uint if needed.