Lines Matching defs:data

72  * Replace data in a subrange of buffer object.  If the data range
74 * if data is NULL, no copy is performed.
81 const void *data, struct gl_buffer_object *obj)
92 * According to ARB_vertex_buffer_object specification, if data is null,
93 * then the contents of the buffer object's data store is undefined. We just
96 if (!data)
118 offset, size, data);
129 void *data, struct gl_buffer_object *obj)
145 offset, size, data);
152 void *data, struct gl_buffer_object *obj)
154 bufferobj_get_subdata(ctx, offset, size, data, obj);
263 const void *data,
288 if (data) {
289 /* Just discard the old contents and write new data.
301 0, size, data);
349 screen->resource_from_user_memory(screen, &buffer, (void*)data);
354 if (obj->buffer && data)
355 pipe_buffer_write(pipe, obj->buffer, 0, size, data);
385 * Allocate space for and store data in a buffer object. Any data that was
386 * previously stored in the buffer object is lost. If data is NULL,
395 const void *data,
400 return bufferobj_data(ctx, target, size, data, NULL, 0, usage, storageFlags, obj);
923 * \param internalformat Format to which the data is to be converted.
924 * \param format Format of the supplied data.
925 * \param type Type of the supplied data.
981 * \param internalformat Format to which the data is converted.
983 * \param format Format of the supplied data.
984 * \param type Type of the supplied data.
985 * \param data Data which is to be converted to internalformat.
987 * \return true if data could be converted, false otherwise.
995 const GLvoid *data, const char *caller)
1001 format, type, data, &ctx->Unpack)) {
1125 count_buffer_size(void *data, void *userData)
1128 (const struct gl_buffer_object *) data;
1241 detach_unrefcounted_buffer_from_ctx(void *data, void *userData)
1244 struct gl_buffer_object *buf = (struct gl_buffer_object *)data;
2197 GLsizeiptr size, const GLvoid *data, GLbitfield flags,
2216 res = _mesa_bufferobj_data(ctx, target, size, data, GL_DYNAMIC_DRAW,
2237 const GLvoid *data, GLbitfield flags,
2298 buffer_storage(ctx, bufObj, memObj, target, size, data, flags, offset, func);
2304 const GLvoid *data, GLbitfield flags)
2306 inlined_buffer_storage(target, 0, size, data, flags, GL_NONE, 0,
2312 _mesa_BufferStorage(GLenum target, GLsizeiptr size, const GLvoid *data,
2315 inlined_buffer_storage(target, 0, size, data, flags, GL_NONE, 0,
2321 const GLvoid *data, GLbitfield flags)
2330 inlined_buffer_storage(GL_NONE, buffer, size, data, flags, GL_NONE, 0,
2355 const GLvoid *data, GLbitfield flags)
2360 inlined_buffer_storage(GL_NONE, buffer, size, data, flags, GL_NONE, 0,
2366 _mesa_NamedBufferStorage(GLuint buffer, GLsizeiptr size, const GLvoid *data,
2372 inlined_buffer_storage(GL_NONE, buffer, size, data, flags, GL_NONE, 0,
2396 GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage,
2405 (long int) size, data,
2458 bufObj->Name, size, data, usage);
2465 if (!_mesa_bufferobj_data(ctx, target, size, data, usage,
2488 GLenum target, GLsizeiptr size, const GLvoid *data,
2491 buffer_data(ctx, bufObj, target, size, data, usage, func, false);
2496 GLenum target, GLsizeiptr size, const GLvoid *data,
2499 buffer_data(ctx, bufObj, target, size, data, usage, func, true);
2504 GLenum target, GLsizeiptr size, const GLvoid *data,
2507 buffer_data_error(ctx, bufObj, target, size, data, usage, func);
2511 _mesa_BufferData_no_error(GLenum target, GLsizeiptr size, const GLvoid *data,
2517 buffer_data_no_error(ctx, *bufObj, target, size, data, usage,
2523 const GLvoid *data, GLenum usage)
2532 _mesa_buffer_data(ctx, bufObj, target, size, data, usage,
2538 const GLvoid *data, GLenum usage)
2543 buffer_data_no_error(ctx, bufObj, GL_NONE, size, data, usage,
2548 _mesa_NamedBufferData(GLuint buffer, GLsizeiptr size, const GLvoid *data,
2561 _mesa_buffer_data(ctx, bufObj, GL_NONE, size, data, usage,
2566 _mesa_NamedBufferDataEXT(GLuint buffer, GLsizeiptr size, const GLvoid *data,
2583 _mesa_buffer_data(ctx, bufObj, GL_NONE, size, data, usage,
2629 * \param data The data store.
2635 GLintptr offset, GLsizeiptr size, const GLvoid *data)
2644 _mesa_bufferobj_subdata(ctx, offset, size, data, bufObj);
2650 GLsizeiptr size, const GLvoid *data,
2676 _mesa_buffer_sub_data(ctx, bufObj, offset, size, data);
2682 GLsizeiptr size, const GLvoid *data)
2684 buffer_sub_data(target, 0, offset, size, data, false, true,
2691 GLsizeiptr size, const GLvoid *data)
2693 buffer_sub_data(target, 0, offset, size, data, false, false,
2699 GLsizeiptr size, const GLvoid *data)
2701 buffer_sub_data(0, buffer, offset, size, data, true, true,
2707 GLsizeiptr size, const GLvoid *data)
2709 buffer_sub_data(0, buffer, offset, size, data, true, false,
2715 GLsizeiptr size, const GLvoid *data)
2733 _mesa_buffer_sub_data(ctx, bufObj, offset, size, data);
2740 GLsizeiptr size, GLvoid *data)
2755 bufferobj_get_subdata(ctx, offset, size, data, bufObj);
2760 GLsizeiptr size, GLvoid *data)
2775 bufferobj_get_subdata(ctx, offset, size, data, bufObj);
2781 GLsizeiptr size, GLvoid *data)
2802 bufferobj_get_subdata(ctx, offset, size, data, bufObj);
2811 GLenum format, GLenum type, const GLvoid *data,
2851 data, clearValueSize, bufObj);
2855 if (!data)
2858 format, type, data, func)) {
2871 const GLvoid *data, const char *func, bool subdata)
2874 type, data, func, subdata, false);
2883 const GLvoid *data, const char *func,
2887 type, data, func, subdata, true);
2893 GLenum format, GLenum type, const GLvoid *data)
2899 (*bufObj)->Size, format, type, data,
2906 GLenum type, const GLvoid *data)
2916 format, type, data, "glClearBufferData", false);
2923 const GLvoid *data)
2929 format, type, data, "glClearNamedBufferData",
2936 GLenum format, GLenum type, const GLvoid *data)
2946 format, type, data, "glClearNamedBufferData",
2953 GLenum format, GLenum type, const GLvoid *data)
2962 format, type, data, "glClearNamedBufferDataEXT",
2971 const GLvoid *data)
2977 format, type, data, "glClearBufferSubData",
2986 const GLvoid *data)
2996 format, type, data, "glClearBufferSubData",
3005 const GLvoid *data)
3011 format, type, data,
3020 const GLvoid *data)
3031 format, type, data, "glClearNamedBufferSubData",
3039 const GLvoid *data)
3048 format, type, data, "glClearNamedBufferSubDataEXT",
5336 * not extend to the end of the buffer's data store."