I am new to CUDA and I have what is certain to be a very simple question:
Should I use float2 and float3 for arrays? Lets say I have an image that is 512x512 and I want to know the pixel value at i=12 and j=156, how would I do that using float2? Is float2 even appropriate in this context.
I can’t seem to find examples where a simple subscript like Image[12,156]=value is used. I am very confused.