Give a function data to modify - GPU Programming | Zoonk
Give a function data to modify
Compare returning one result with changing a value through a reference or pointer parameter. Decide when a function should produce a new value and when it should update storage supplied by the caller.