MCPcopy Create free account
hub / github.com/KhronosGroup/KTX-Software / unit3

Function unit3

external/astc-encoder/Source/astcenc_vecmathlib.h:295–299  ·  view source on GitHub ↗

* @brief Factory that returns a unit length 3 component vfloat4. */

Source from the content-addressed store, hash-verified

293 * @brief Factory that returns a unit length 3 component vfloat4.
294 */
295static ASTCENC_SIMD_INLINE vfloat4 unit3()
296{
297 float val = 0.577350258827209473f;
298 return vfloat4(val, val, val, 0.0f);
299}
300
301/**
302 * @brief Factory that returns a unit length 2 component vfloat4.

Calls 1

vfloat4Class · 0.70

Tested by

no test coverage detected