| 45 | // Hex-encodes a float value. |
| 46 | template <typename T> |
| 47 | std::string EncodeViaHexFloat(const T& value) { |
| 48 | std::stringstream ss; |
| 49 | ss << spvutils::HexFloat<T>(value); |
| 50 | return ss.str(); |
| 51 | } |
| 52 | |
| 53 | // The following two tests can't be DRY because they take different parameter |
| 54 | // types. |