MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / EncodeViaHexFloat

Function EncodeViaHexFloat

test/hex_float_test.cpp:52–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

TEST_PFunction · 0.85

Calls 1

strMethod · 0.45

Tested by

no test coverage detected