Lines Matching defs:comps
426 GLint comps = _mesa_components_in_format(format);
427 if (comps < 0)
435 return comps * sizeof(GLubyte);
438 return comps * sizeof(GLshort);
441 return comps * sizeof(GLint);
443 return comps * sizeof(GLfloat);
446 return comps * sizeof(GLhalfARB);
528 * \param comps number of components.
531 * \return bytes per attribute, or -1 if a bad comps/type combination was given.
534 _mesa_bytes_per_vertex_attrib(GLint comps, GLenum type)
539 return comps * sizeof(GLubyte);
542 return comps * sizeof(GLshort);
545 return comps * sizeof(GLint);
547 return comps * sizeof(GLfloat);
550 return comps * sizeof(GLhalfARB);
552 return comps * sizeof(GLdouble);
554 return comps * sizeof(GLfixed);
557 if (comps == 4)
562 if (comps == 3)
567 return comps * 8;