MCPcopy Create free account
hub / github.com/NVIDIA-RTX/Donut / snorm8ToVector

Function snorm8ToVector

src/core/math/vector.cpp:106–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104
105 template<>
106 float2 snorm8ToVector(uint v)
107 {
108
109 float x = static_cast<signed char>(v & 0xff);
110 float y = static_cast<signed char>((v >> 8) & 0xff);
111 return max(float2(x, y) / 127.0f, float2(-1.f));
112 }
113
114 template<>
115 float3 snorm8ToVector(uint v)

Callers

nothing calls this directly

Calls 1

maxFunction · 0.50

Tested by

no test coverage detected