Lines Matching refs:first
489 * going down the UNSYNC path (ie. honoring DISCARD_x first before UNSYNC).
830 * \param offset Offset of the first byte of the subdata range.
859 * \param offset Offset of the first byte of the subdata range.
2627 * \param offset Offset of the first byte of the subdata range.
4317 GLuint first, GLsizei count,
4328 * "An INVALID_OPERATION error is generated if <first> + <count> is
4332 if (first + count > ctx->Const.MaxUniformBufferBindings) {
4334 "%s(first=%u + count=%d > the value of "
4336 caller, first, count,
4346 GLuint first, GLsizei count,
4357 * "An INVALID_OPERATION error is generated if <first> + <count> is
4361 if (first + count > ctx->Const.MaxShaderStorageBufferBindings) {
4363 "%s(first=%u + count=%d > the value of "
4365 caller, first, count,
4375 * <first> through <first>+<count>-1
4378 unbind_uniform_buffers(struct gl_context *ctx, GLuint first, GLsizei count)
4381 set_buffer_binding(ctx, &ctx->UniformBufferBindings[first + i],
4387 * <first> through <first>+<count>-1
4390 unbind_shader_storage_buffers(struct gl_context *ctx, GLuint first,
4394 set_buffer_binding(ctx, &ctx->ShaderStorageBufferBindings[first + i],
4399 bind_uniform_buffers(struct gl_context *ctx, GLuint first, GLsizei count,
4405 if (!error_check_bind_uniform_buffers(ctx, first, count, caller))
4415 * "If <buffers> is NULL, all bindings from <first> through
4416 * <first>+<count>-1 are reset to their unbound (zero) state.
4421 unbind_uniform_buffers(ctx, first, count);
4433 * first pass to scan the entire list of bound objects for errors
4449 &ctx->UniformBufferBindings[first + i];
4501 bind_shader_storage_buffers(struct gl_context *ctx, GLuint first,
4508 if (!error_check_bind_shader_storage_buffers(ctx, first, count, caller))
4518 * "If <buffers> is NULL, all bindings from <first> through
4519 * <first>+<count>-1 are reset to their unbound (zero) state.
4524 unbind_shader_storage_buffers(ctx, first, count);
4536 * first pass to scan the entire list of bound objects for errors
4552 &ctx->ShaderStorageBufferBindings[first + i];
4606 GLuint first, GLsizei count, const char *caller)
4634 * "An INVALID_OPERATION error is generated if <first> + <count> is
4638 if (first + count > ctx->Const.MaxTransformFeedbackBuffers) {
4640 "%s(first=%u + count=%d > the value of "
4642 caller, first, count,
4652 * <first> through <first>+<count>-1
4657 GLuint first, GLsizei count)
4660 _mesa_set_transform_feedback_binding(ctx, tfObj, first + i,
4666 GLuint first, GLsizei count,
4676 if (!error_check_bind_xfb_buffers(ctx, tfObj, first, count, caller))
4685 * "If <buffers> is NULL, all bindings from <first> through
4686 * <first>+<count>-1 are reset to their unbound (zero) state.
4691 unbind_xfb_buffers(ctx, tfObj, first, count);
4703 * first pass to scan the entire list of bound objects for errors
4718 const GLuint index = first + i;
4788 GLuint first, GLsizei count,
4799 * "An INVALID_OPERATION error is generated if <first> + <count> is
4803 if (first + count > ctx->Const.MaxAtomicBufferBindings) {
4805 "%s(first=%u + count=%d > the value of "
4807 caller, first, count, ctx->Const.MaxAtomicBufferBindings);
4816 * <first> through <first>+<count>-1
4819 unbind_atomic_buffers(struct gl_context *ctx, GLuint first, GLsizei count)
4822 set_buffer_binding(ctx, &ctx->AtomicBufferBindings[first + i],
4828 GLuint first,
4836 if (!error_check_bind_atomic_buffers(ctx, first, count, caller))
4846 * "If <buffers> is NULL, all bindings from <first> through
4847 * <first>+<count>-1 are reset to their unbound (zero) state.
4852 unbind_atomic_buffers(ctx, first, count);
4864 * first pass to scan the entire list of bound objects for errors
4880 &ctx->AtomicBufferBindings[first + i];
5067 * the first quote would imply, or is the size meaningless in the
5102 _mesa_BindBuffersRange(GLenum target, GLuint first, GLsizei count,
5110 _mesa_enum_to_string(target), first, count,
5116 bind_xfb_buffers(ctx, first, count, buffers, true, offsets, sizes,
5120 bind_uniform_buffers(ctx, first, count, buffers, true, offsets, sizes,
5124 bind_shader_storage_buffers(ctx, first, count, buffers, true, offsets, sizes,
5128 bind_atomic_buffers(ctx, first, count, buffers, true, offsets, sizes,
5139 _mesa_BindBuffersBase(GLenum target, GLuint first, GLsizei count,
5146 _mesa_enum_to_string(target), first, count, buffers);
5151 bind_xfb_buffers(ctx, first, count, buffers, false, NULL, NULL,
5155 bind_uniform_buffers(ctx, first, count, buffers, false, NULL, NULL,
5159 bind_shader_storage_buffers(ctx, first, count, buffers, false, NULL, NULL,
5163 bind_atomic_buffers(ctx, first, count, buffers, false, NULL, NULL,