Lines Matching defs:swizzle
426 * Return a string representation of the given swizzle word.
428 * \param swizzle the swizzle field
433 _mesa_swizzle_string(GLuint swizzle, GLuint negateMask, GLboolean extended)
439 if (!extended && swizzle == SWIZZLE_NOOP && negateMask == 0)
440 return ""; /* no swizzle/negation */
447 s[i++] = swz[GET_SWZ(swizzle, 0)];
455 s[i++] = swz[GET_SWZ(swizzle, 1)];
463 s[i++] = swz[GET_SWZ(swizzle, 2)];
471 s[i++] = swz[GET_SWZ(swizzle, 3)];
479 _mesa_print_swizzle(GLuint swizzle)
481 if (swizzle == SWIZZLE_XYZW) {
485 const char *s = _mesa_swizzle_string(swizzle, 0, 0);