MCPcopy Create free account
hub / github.com/ARM-software/astc-encoder / interleave_rgba8

Function interleave_rgba8

Source/astcenc_vecmathlib_none_4.h:1182–1189  ·  view source on GitHub ↗

* @brief Return a vector of interleaved RGBA data. * * Input vectors have the value stored in the bottom 8 bits of each lane, * with high bits set to zero. * * Output vector stores a single RGBA texel packed in each lane. */

Source from the content-addressed store, hash-verified

1180 * Output vector stores a single RGBA texel packed in each lane.
1181 */
1182ASTCENC_SIMD_INLINE vint4 interleave_rgba8(vint4 r, vint4 g, vint4 b, vint4 a)
1183{
1184#if !defined(ASTCENC_BIG_ENDIAN)
1185 return r + lsl<8>(g) + lsl<16>(b) + lsl<24>(a);
1186#else
1187 return a + lsl<8>(b) + lsl<16>(g) + lsl<24>(r);
1188#endif
1189}
1190
1191/**
1192 * @brief Store a single vector lane to an unaligned address.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected