* @brief Load a vector of gathered results from an array; */
| 936 | * @brief Load a vector of gathered results from an array; |
| 937 | */ |
| 938 | ASTCENC_SIMD_INLINE vfloat4 gatherf(const float* base, vint4 indices) |
| 939 | { |
| 940 | return vfloat4(base[indices.m[0]], |
| 941 | base[indices.m[1]], |
| 942 | base[indices.m[2]], |
| 943 | base[indices.m[3]]); |
| 944 | } |
| 945 | |
| 946 | /** |
| 947 | * @brief Load a vector of gathered results from an array using byte indices from memory |