A RGBA is 4 data elements per pixel, so pitch would be calculated as:

row_pitch = 4 * sizeof(float) * image_width_in_pixels;