Do you want to do it for leaning purpose or you think it is the way to draw multiple quads?
in the second case, this is not the most appropriate way.
A very basic approach will be just call draw multiple times with different uniform variables for position for example.
@CarstenT
Thanks for searching and picking out a good tutorial
@Alfonse_Reinheart@lilington
Thanks for the replies. I want to use different methods for drawing spheres and then compare their performance. Using the compute shader is one method.
I will try out your approach.