* @brief Return a float value for a integer vector. */
| 1004 | * @brief Return a float value for a integer vector. |
| 1005 | */ |
| 1006 | ASTCENC_SIMD_INLINE vfloat4 int_to_float(vint4 a) |
| 1007 | { |
| 1008 | return vfloat4(static_cast<float>(a.m[0]), |
| 1009 | static_cast<float>(a.m[1]), |
| 1010 | static_cast<float>(a.m[2]), |
| 1011 | static_cast<float>(a.m[3])); |
| 1012 | } |
| 1013 | |
| 1014 | /** |
| 1015 | * @brief Return a float16 value for a float vector, using round-to-nearest. |