Load a given pixel from the pixel list into a SSE register
| 105 | |
| 106 | // Load a given pixel from the pixel list into a SSE register |
| 107 | inline __m128 LoadPixel(const float * rgbaBuffer, float & inAlpha) |
| 108 | { |
| 109 | inAlpha = rgbaBuffer[3]; |
| 110 | return _mm_loadu_ps(rgbaBuffer); |
| 111 | } |
| 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) |