can someone tell me, why the following fails:
unsigned char* resultr = (unsigned char*) ((char*) target->d_pointer + y * target->d_pitch) + (x * target->d_padding) + 2;
This construct is for accessing a pixel in an uploaded image using cudaMallocPitch.
The expression fails with: error: expression must have pointer type
I’m sure its simple, but I dont see it.