Quick question: how is one supposed to do computations using uchar1 values? I’m trying to subtract 2 values and I’m getting an error message (see below):
uchar1 currVal = tex2D(devTexture, x, y);
uchar1 val255 = make_uchar1(255);
uchar1 newVal = val255 - currVal;
1>test.cu(186): error: no operator “-” matches these operands
1> operand types are: uchar1 - uchar1