MCPcopy Create free account
hub / github.com/GPUOpen-Tools/compressonator / normalize

Function normalize

cmp_compressonatorlib/astc/astc_encode_kernel.cpp:73–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73float2 normalize(float2 p)
74{
75 return p / length(p);
76}
77
78float3 normalize(float3 p)
79{

Calls 1

lengthFunction · 0.70

Tested by

no test coverage detected