Hi
i`m not really sure i understand why
every execute cycle this line need to run :
outputFormat->newCPUPixelDataLocation = 0
[code]float* mem = (float*)outputFormat->cpuPixelData[0];
for (int y = 0; y < outputFormat->height; ++y)
{
for (int x = 0; x < outputFormat->width; ++x)
{
float* pixel = &mem[4*(y*outputFormat->width + x)];
// RGBA
pixel[0] = 1;
pixel[1] = 1;
pixel[2] = 1;
pixel[3] = 1;
if (x < 16 && y == 0)
{
pixel[1] = 1 * speed;
pixel[2] = 1 * speed;
}
}
}
outputFormat->newCPUPixelDataLocation = 0;[/code]