Lines Matching refs:visit
57 void TOutputGLSLBase::writeTriplet(Visit visit, const char* preStr, const char* inStr, const char* postStr)
60 if (visit == PreVisit && preStr)
64 else if (visit == InVisit && inStr)
68 else if (visit == PostVisit && postStr)
176 bool TOutputGLSLBase::visitBinary(Visit visit, TIntermBinary* node)
183 if (visit == InVisit)
190 case EOpAssign: writeTriplet(visit, "(", " = ", ")"); break;
191 case EOpAddAssign: writeTriplet(visit, "(", " += ", ")"); break;
192 case EOpSubAssign: writeTriplet(visit, "(", " -= ", ")"); break;
193 case EOpDivAssign: writeTriplet(visit, "(", " /= ", ")"); break;
200 writeTriplet(visit, "(", " *= ", ")");
204 writeTriplet(visit, NULL, "[", "]");
209 if (visit == InVisit)
217 else if (visit == PostVisit)
242 writeTriplet(visit, NULL, "[", "]");
246 if (visit == InVisit)
267 if (visit == InVisit)
292 case EOpAdd: writeTriplet(visit, "(", " + ", ")"); break;
293 case EOpSub: writeTriplet(visit, "(", " - ", ")"); break;
294 case EOpMul: writeTriplet(visit, "(", " * ", ")"); break;
295 case EOpDiv: writeTriplet(visit, "(", " / ", ")"); break;
297 case EOpEqual: writeTriplet(visit, "(", " == ", ")"); break;
298 case EOpNotEqual: writeTriplet(visit, "(", " != ", ")"); break;
299 case EOpLessThan: writeTriplet(visit, "(", " < ", ")"); break;
300 case EOpGreaterThan: writeTriplet(visit, "(", " > ", ")"); break;
301 case EOpLessThanEqual: writeTriplet(visit, "(", " <= ", ")"); break;
302 case EOpGreaterThanEqual: writeTriplet(visit, "(", " >= ", ")"); break;
310 writeTriplet(visit, "(", " * ", ")");
313 case EOpLogicalOr: writeTriplet(visit, "(", " || ", ")"); break;
314 case EOpLogicalXor: writeTriplet(visit, "(", " ^^ ", ")"); break;
315 case EOpLogicalAnd: writeTriplet(visit, "(", " && ", ")"); break;
322 bool TOutputGLSLBase::visitUnary(Visit visit, TIntermUnary* node)
407 if (visit == PreVisit && node->getUseEmulatedFunction())
409 writeTriplet(visit, preString.c_str(), NULL, postString.c_str());
414 bool TOutputGLSLBase::visitSelection(Visit visit, TIntermSelection* node)
451 bool TOutputGLSLBase::visitAggregate(Visit visit, TIntermAggregate* node)
484 ASSERT(visit == PreVisit);
497 ASSERT(visit == PreVisit);
521 // Fully processed; no need to visit children.
527 if (visit == PreVisit)
531 else if (visit == InVisit)
542 ASSERT(visit == PreVisit);
551 if (visit == PreVisit)
559 else if (visit == InVisit)
570 case EOpConstructFloat: writeTriplet(visit, "float(", NULL, ")"); break;
571 case EOpConstructVec2: writeTriplet(visit, "vec2(", ", ", ")"); break;
572 case EOpConstructVec3: writeTriplet(visit, "vec3(", ", ", ")"); break;
573 case EOpConstructVec4: writeTriplet(visit, "vec4(", ", ", ")"); break;
574 case EOpConstructBool: writeTriplet(visit, "bool(", NULL, ")"); break;
575 case EOpConstructBVec2: writeTriplet(visit, "bvec2(", ", ", ")"); break;
576 case EOpConstructBVec3: writeTriplet(visit, "bvec3(", ", ", ")"); break;
577 case EOpConstructBVec4: writeTriplet(visit, "bvec4(", ", ", ")"); break;
578 case EOpConstructInt: writeTriplet(visit, "int(", NULL, ")"); break;
579 case EOpConstructIVec2: writeTriplet(visit, "ivec2(", ", ", ")"); break;
580 case EOpConstructIVec3: writeTriplet(visit, "ivec3(", ", ", ")"); break;
581 case EOpConstructIVec4: writeTriplet(visit, "ivec4(", ", ", ")"); break;
582 case EOpConstructMat2: writeTriplet(visit, "mat2(", ", ", ")"); break;
583 case EOpConstructMat3: writeTriplet(visit, "mat3(", ", ", ")"); break;
584 case EOpConstructMat4: writeTriplet(visit, "mat4(", ", ", ")"); break;
586 if (visit == PreVisit)
592 else if (visit == InVisit)
608 case EOpComma: writeTriplet(visit, NULL, ", ", NULL); break;
630 if (delayedWrite && visit == PreVisit && node->getUseEmulatedFunction())
633 writeTriplet(visit, preString.c_str(), ", ", ")");
637 bool TOutputGLSLBase::visitLoop(Visit visit, TIntermLoop* node)
702 // No need to visit children. They have been already processed in
707 bool TOutputGLSLBase::visitBranch(Visit visit, TIntermBranch* node)
711 case EOpKill: writeTriplet(visit, "discard", NULL, NULL); break;
712 case EOpBreak: writeTriplet(visit, "break", NULL, NULL); break;
713 case EOpContinue: writeTriplet(visit, "continue", NULL, NULL); break;
714 case EOpReturn: writeTriplet(visit, "return ", NULL, NULL); break;