Store the pixel's values into a given pixel list's position
| 112 | |
| 113 | // Store the pixel's values into a given pixel list's position |
| 114 | inline void StorePixel(float * rgbaBuffer, const __m128 pix, const float outAlpha) |
| 115 | { |
| 116 | _mm_storeu_ps(rgbaBuffer, pix); |
| 117 | rgbaBuffer[3] = outAlpha; |
| 118 | } |
| 119 | |
| 120 | // Conditionally clamp the pixel's values to the range [0, 1] |
| 121 | // When the template argument is true, the clamp mode is used, |