I am trying to plot a graph using shaders. I have x and y data seperately and I want to pass them both to the shader seperatedly. The way I am currently doing is interleaving them like x0,y0,x1,y1,... and using a single vertex attribute
attribute vec2 coord2d;
I pass the interleaved data and then by
coord2d.xy
I acquire the sample points. However I do not want to load CPU with interleaving the data. Is there any way I can pass my x and y data to separate vertex attributes and let the shader fetch the samples from those.