MCPcopy Create free account
hub / github.com/KhronosGroup/glslang / EncodeViaFloatProxy

Function EncodeViaFloatProxy

gtests/HexFloat.cpp:413–417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

411// Converts a float value to a string via a FloatProxy.
412template <typename T>
413std::string EncodeViaFloatProxy(const T& value) {
414 std::stringstream ss;
415 ss << value;
416 return ss.str();
417}
418
419// Converts a floating point string so that the exponent prefix
420// is 'e', and the exponent value does not have leading zeros.

Callers 1

TEST_PFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected