Can anyone post a simple example using:
- a 2D mallocPitch array
- Bind that array to a 2D float texture
- Copy memory to the array
- add 1 to the mpitch array using the 2D texture
- read back and print results
Do this for a width!=height array and I will be very happy. I have tried this many ways and have not been able to achieve correct results for a 2d array where width!=height.
Thanks.