CPU Memory TOP mono fixed 8bit ? |CPP

hi there,

after setting the format of the cpp top to fixed mono 8bit.

format->greenChannel = false; format->blueChannel = false; format->alphaChannel = false;

Why the iteration works only in this form :

float* pixel = &mem[4*(y*outputFormat->width + x)];

I would expect to have “1” instead of the 4…
One element assignment to float per pixel…

if the texture size was 2x2
I would expect array of 4 values , unsigned 8 bit integer.

o sorry,
I should try this :

ginfo->memPixelType = OP_CPUMemPixelType::R8Fixed;