When implementing discrete algorithms (described on pixel arrays or matrices) like convolution in WebGL (or generally GLSL I guess), what is the cheapest/preferred way to ge