Lines Matching defs:buffer
79 * - an index buffer is built.
81 * At the end of this transformation, the index buffer and the vertex buffer
82 * are uploaded in vRAM in the same buffer object.
83 * This buffer object is shared between multiple display list to allow
86 * The layout of this buffer for two display lists is:
93 * the same Offset in the buffer object. To achieve this, the start values of
98 * can't be drawn with an index buffer so this transformation is disabled
161 assert(save->copied.buffer == NULL);
162 save->copied.buffer = malloc(sizeof(fi_type) * sz * prim->count);
165 prim->begin, sz, true, save->copied.buffer, src);
167 free(save->copied.buffer);
168 save->copied.buffer = NULL;
255 /* Copy the 0th vertex to end of the buffer and extend the
261 /* end of buffer: */
300 /* Check the buffer binding at 0 */
368 /* Bind the buffer object at binding point 0 */
454 /* Add vertex to the vertex buffer and return its index. If this vertex is a duplicate
478 * buffer. Note that 'new_buffer' is created at each list compilation so we write vertices
490 /* The index buffer is shared between list compilations, so add the base index to get
550 const char *buffer = (const char *)save->vertex_store->buffer_in_ram;
557 memcpy(node->cold->current_data, buffer + vertex_offset + attr_offset,
584 /* Create an index buffer. */
611 /* The loopback replay code doesn't use the index buffer, so we can't
808 /* The vertex size is an exact multiple of the buffer offset.
814 * filter out redundant vertex buffer changes.
855 /* Since we append the indices to an existing buffer, we need to adjust the start value of each
978 /* _vbo_loopback_vertex_list doesn't use the index buffer, so we have to
1002 * This is called when we fill a vertex buffer before we hit a glEnd().
1058 assert(save->copied.buffer);
1060 save->copied.buffer,
1062 free(save->copied.buffer);
1063 save->copied.buffer = NULL;
1133 * BEGIN in the new buffer.
1178 assert(save->copied.buffer);
1179 const fi_type *data = save->copied.buffer;
1231 free(save->copied.buffer);
1232 save->copied.buffer = NULL;
1420 * -- Flush current buffer