Original Post
Hi,
I have a program which will send thousands of array with size 2048 bytes each array. I uses VBO here.
After I send the data into the buffer, I want to process each of the array by using vertex shader. How to manipulate the vertex array in lower level?
Is it the vertex shader able to process each buffer object in parallel? That is what I want to reach.
Help please =.=
I have a program which will send thousands of array with size 2048 bytes each array. I uses VBO here.
for(p=0;p<noOfpacket;p++){
for(q=0;q<2048;q++){
gpu_payload[q] = packet_payload[q];
}
glGenBuffersARB(1, &vboID
);
glBindBufferARB(GL_ARRAY_BUFFER_ARB, vboID
);
glBufferDataARB(GL_ARRAY_BUFFER_ARB, sizeof(gpu_payload), gpu_payload, GL_STATIC_DRAW_ARB);
}
After I send the data into the buffer, I want to process each of the array by using vertex shader. How to manipulate the vertex array in lower level?
Is it the vertex shader able to process each buffer object in parallel? That is what I want to reach.
Help please =.=