Lines Matching refs:buffer

564 	 *       for the depth buffer to be updated.
647 unsigned int buffer[64 /* width */ * 64 /* height */ * 4 /* components */];
653 GL_RGBA_INTEGER, GL_UNSIGNED_INT, buffer);
667 float* row_ptr = (float*)buffer + row_width * data_y;
844 * as the color buffer's attachment uses GL_R16UI format.
970 /* Clear color buffer before drawing to it, not strictly neccesary
1005 /* Clear color buffer before drawing to it, not strictly neccesary
1015 * because the read buffer contains integer data.
1032 /* Allocate a buffer to hold the result data and then download the result texture's
1034 unsigned int* buffer = new unsigned int[16 /* width */ * 16 /* height */ * 4 /* components */];
1040 GL_RGBA_INTEGER, GL_UNSIGNED_INT, buffer);
1054 const unsigned int* row_ptr = (unsigned int*)((char*)buffer + data_y * row_width);
1087 if (buffer != NULL)
1089 delete[] buffer;
1090 buffer = NULL;
1283 /* Unbind buffer object bound to GL_TRANSFORM_FEEDBACK_BUFFER target */
1300 /* Delete a buffer object of id bo_id */
1383 /* Generate a buffer object of id bo_id */
1563 /* Bind the bo_id buffer object to GL_TRANSFORM_FEEDBACK_BUFFER generic target */
1569 /* Bind the bo_id buffer object to zeroth binding point of GL_TRANSFORM_FEEDBACK_BUFFER */
1572 /* Initialize buffer object's storage to hold a total of 4 bytes (sizeof(float) );*/
1640 /* We need to clear render buffer, otherwise masked samples will have undefined values */
1679 /* Draw a single point. This will fill our transform feedback buffer with result */
1694 /* Map buffer object bo_id's contents to user-space */
1700 /* Copy result from buffer */
1703 /* Unmap the buffer object */
1849 /* Unbind buffer object bound to GL_TRANSFORM_FEEDBACK_BUFFER target */
1866 /* Delete a buffer object of id bo_id */
1949 /* Generate a buffer object of id bo_id */
2121 /* Bind the bo_id buffer object to GL_TRANSFORM_FEEDBACK_BUFFER generic target */
2124 /* Bind the bo_id buffer object to zeroth binding point of GL_TRANSFORM_FEEDBACK_BUFFER */
2130 /* Initialize buffer object's storage to hold a total of 4 bytes (sizeof(float) );*/
2296 /* Draw a single point. This will fill our transform feedback buffer with result */
2308 /* Map buffer object bo_id's contents to user-space */
2313 /* Copy result from buffer */
2316 /* Unmap the buffer object */
2626 unsigned char* buffer = NULL;
2641 buffer = new unsigned char[rt_height * rt_width * 4];
2643 gl.readPixels(0, 0, rt_width, rt_height, GL_RGBA, GL_UNSIGNED_BYTE, buffer);
2646 data_ptr = buffer + row_width * (rt_height / 2) + rt_width / 2 * 4;
2655 delete[] buffer;
2656 buffer = NULL;
2661 if (buffer != NULL)
2663 delete[] buffer;
2664 buffer = NULL;
2782 /* Set up a buffer object */
2787 GLU_EXPECT_NO_ERROR(gl.getError(), "Could not set up a buffer object");
3016 /* Read the captured data. Reset the contents of the BO before the buffer