This topic is closely related to float -> uint conversion topic posted by me recently, however, I’m knowingly putting this question into the root.
When I do something like this:
global void kernel(unsigned int* pOut)
{
pOut[nThreadIdx % nOutSize] = 0xffffffff;
}
I get 0xcdcdcdcd values in pOut instead of 0xffffffff.
Why this happens ?