search for: gl_transform_feedback_buffer

Displaying 4 results from an estimated 4 matches for "gl_transform_feedback_buffer".

2015 Jan 12
2
Re: [RFC] mesa/st: Avoid passing a NULL buffer to the drivers
...ut vertices) and a single vertex to stream one (the per-triangle data). The transform feedback API usage for this case would be something like: // Set up buffer objects 21 and 22 to capture data for per-vertex and // per primitive values. glBindBufferBase(GL_TRANSFORM_FEEDBACK_BUFFER, 0, 21); glBindBufferBase(GL_TRANSFORM_FEEDBACK_BUFFER, 1, 22); // Set up XFB to capture position and texcoord to buffer binding // point 0 (buffer 21 bound), and normal to binding point 1 (buffer // 22 bound). char *strings[] = { "position",...
2015 Jan 12
1
Re: [RFC] mesa/st: Avoid passing a NULL buffer to the drivers
...gle >> data). The transform feedback API usage for this case would be >> something like: >> >> // Set up buffer objects 21 and 22 to capture data for per-vertex >> and >> // per primitive values. >> glBindBufferBase(GL_TRANSFORM_FEEDBACK_BUFFER, 0, 21); >> glBindBufferBase(GL_TRANSFORM_FEEDBACK_BUFFER, 1, 22); >> >> // Set up XFB to capture position and texcoord to buffer binding >> // point 0 (buffer 21 bound), and normal to binding point 1 (buffer >> // 22 bound). >&gt...
2015 Jan 12
0
[RFC] mesa/st: Avoid passing a NULL buffer to the drivers
...rtex to stream one (the per-triangle > data). The transform feedback API usage for this case would be > something like: > > // Set up buffer objects 21 and 22 to capture data for per-vertex > and > // per primitive values. > glBindBufferBase(GL_TRANSFORM_FEEDBACK_BUFFER, 0, 21); > glBindBufferBase(GL_TRANSFORM_FEEDBACK_BUFFER, 1, 22); > > // Set up XFB to capture position and texcoord to buffer binding > // point 0 (buffer 21 bound), and normal to binding point 1 (buffer > // 22 bound). > char *strings[] =...
2015 Jan 07
3
[RFC] mesa/st: Avoid passing a NULL buffer to the drivers
If we capture transform feedback from n stream in (n-1) buffers we face a NULL buffer, use the buffer (n-1) to capture the output of stream n. This fixes one piglit test with nvc0: arb_gpu_shader5-xfb-streams-without-invocations Signed-off-by: Tobias Klausmann <tobias.johannes.klausmann at mni.thm.de> --- src/mesa/state_tracker/st_cb_xformfb.c | 5 +++++ 1 file changed, 5 insertions(+)