Pass arrays with pointer and length - GPU Programming | Zoonk
Pass arrays with pointer and length
Write a function that receives `T* data` and a count, then loops over the elements safely. Treat the pointer as the start of the array and the length as the rule that keeps access in bounds.