To draw to all the pixels in the texture, I have two methods.
The first and most common is using draw() and the second is using drawInstanced()
draw() will use a typology of line list and 2 vertex to define the line that will go acros all the pixels of the texture
drawInstanced() will use a typology of point list and 1 vertex that will be modified depending on the intanceID to run in a different pixel of the texture
The question is, which method will end the drawing first?Are they equal.
What i am going to do is use drawIntanced(), not to draw to all the pixels of a 30X1 texture, but to draw to 1 pixel of a 1X1 texture and depending on the value that each pixel shader returns, the pixel will be replaced with that value.
So I create that comparison to see how fast that will be.
Edited by lomateron, 17 September 2012 - 08:10 PM.