Lines Matching defs:array
167 struct gl_array_attributes *array = &vao->VertexAttrib[attribIndex];
170 if (array->BufferBindingIndex != bindingIndex) {
183 vao->BufferBinding[array->BufferBindingIndex]._BoundArrays &= ~array_bit;
186 array->BufferBindingIndex = bindingIndex;
636 * \param attrib The index of the attribute array
654 struct gl_array_attributes *const array = &vao->VertexAttrib[attrib];
663 if ((array->RelativeOffset == relativeOffset) &&
664 !memcmp(&new_format, &array->Format, sizeof(new_format)))
667 array->RelativeOffset = relativeOffset;
668 array->Format = new_format;
677 * Does error checking of the format in an attrib array.
682 * \param attrib The index of the attribute array
806 * \param attrib the attribute array index to update
816 * \param ptr the address (or offset inside VBO) of the array data
830 * "Client vertex arrays - all vertex array attribute pointers must
831 * refer to buffer objects (section 2.9.2). The default vertex array
833 * VertexAttribPointer when no buffer object or no vertex array object
839 _mesa_error(ctx, GL_INVALID_OPERATION, "%s(no array object bound)",
864 * organization of vertex array data are called while zero is bound
870 _mesa_error(ctx, GL_INVALID_OPERATION, "%s(non-VBO array)", func);
900 * \param attrib the attribute array index to update
909 * \param ptr the address (or offset inside VBO) of the array data
928 struct gl_array_attributes *array = &vao->VertexAttrib[attrib];
929 if ((array->Stride != stride) || (array->Ptr != ptr)) {
930 array->Stride = stride;
931 array->Ptr = ptr;
945 stride : array->Format._ElementSize;
1654 * Set a generic vertex attribute array.
1785 * Set an integer-valued vertex attribute array.
1968 * array object."
2061 * array object."
2107 * Return info for a vertex attribute array (no alias with legacy
2117 const struct gl_array_attributes *array;
2127 array = &vao->VertexAttrib[VERT_ATTRIB_GENERIC(index)];
2133 return (array->Format.Format == GL_BGRA) ? GL_BGRA : array->Format.Size;
2135 return array->Stride;
2137 return array->Format.Type;
2139 return array->Format.Normalized;
2141 buf = vao->BufferBinding[array->BufferBindingIndex].BufferObj;
2147 return array->Format.Integer;
2152 return array->Format.Doubles;
2158 return vao->BufferBinding[array->BufferBindingIndex].InstanceDivisor;
2163 return array->BufferBindingIndex - VERT_ATTRIB_GENERIC0;
2168 return array->RelativeOffset;
2390 * vertex array object."
2454 * vertex array object."
2903 * "The vertex array object named by vaobj must
3062 * "An INVALID_OPERATION error is generated if no vertex array object
3068 "glBindVertexBuffer(No array object bound)");
3102 * existing vertex array object."
3285 * vertex array object is bound."
3290 "glBindVertexBuffers(No array object bound)");
3360 * existing vertex array object."
3389 * - if no vertex array object is currently bound (see section
3401 "%s(No array object bound)", func);
3643 * "An INVALID_OPERATION error is generated if no vertex array object
3649 "glVertexAttribBinding(No array object bound)");
3682 * existing vertex array object."
3753 * "An INVALID_OPERATION error is generated if no vertex array object
3759 "glVertexBindingDivisor(No array object bound)");
3791 * existing vertex array object."
3813 * existing vertex array object."
3824 * Print current vertex object/array info. For debug.
3836 const struct gl_array_attributes *array = &vao->VertexAttrib[i];
3839 &vao->BufferBinding[array->BufferBindingIndex];
3845 array->Ptr, _mesa_enum_to_string(array->Format.Type),
3846 array->Format.Size,
3847 array->Format._ElementSize, binding->Stride, bo ? bo->Name : 0,
3853 * Initialize attributes of a vertex array within a vertex array object.
3854 * \param vao the container vertex array object
3855 * \param index which array in the VAO to initialize
3865 struct gl_array_attributes *array = &vao->VertexAttrib[index];
3869 _mesa_set_vertex_format(&array->Format, size, type, GL_RGBA,
3871 array->Stride = 0;
3872 array->Ptr = NULL;
3873 array->RelativeOffset = 0;
3876 array->BufferBindingIndex = index;
3879 binding->Stride = array->Format._ElementSize;
3923 * Initialize vertex array state for given context.
3941 * Callback for deleting an array object. Called by _mesa_HashDeleteAll().
3953 * Free vertex array state for given context.
4177 * array to query or texture coordinate set index respectively."