• Home
  • Raw
  • Download

Lines Matching refs:op

280 	std::ostringstream& op = isVertexCase ? vtx : frag;  in createGenericLoopCase()  local
312 op << "uniform ${COUNTER_PRECISION} int " << getIntUniformName(numLoopIters) << ";\n"; in createGenericLoopCase()
317op << "uniform ${COUNTER_PRECISION} float " << getFloatFractionUniformName(numLoopIters) << ";\n"; in createGenericLoopCase()
320 op << "uniform ${COUNTER_PRECISION} float uf_one;\n"; in createGenericLoopCase()
356 op << " ${PRECISION} vec4 res = coords;\n"; in createGenericLoopCase()
410 op << " for (" + loopCountDeclStr + "; " + loopCmpStr + "; " + incrementStr + ")\n"; in createGenericLoopCase()
411 op << " {\n"; in createGenericLoopCase()
412 op << loopBody; in createGenericLoopCase()
413 op << " }\n"; in createGenericLoopCase()
417 op << "\t" << loopCountDeclStr + ";\n"; in createGenericLoopCase()
418 op << " while (" + loopCmpStr + ")\n"; in createGenericLoopCase()
419 op << " {\n"; in createGenericLoopCase()
420 op << loopBody; in createGenericLoopCase()
421 op << "\t\t" + incrementStr + ";\n"; in createGenericLoopCase()
422 op << " }\n"; in createGenericLoopCase()
426 op << "\t" << loopCountDeclStr + ";\n"; in createGenericLoopCase()
427 op << " do\n"; in createGenericLoopCase()
428 op << " {\n"; in createGenericLoopCase()
429 op << loopBody; in createGenericLoopCase()
430 op << "\t\t" + incrementStr + ";\n"; in createGenericLoopCase()
431 op << " } while (" + loopCmpStr + ");\n"; in createGenericLoopCase()
488 std::ostringstream& op = isVertexCase ? vtx : frag; in createSpecialLoopCase() local
515 op << "uniform bool ub_true;\n"; in createSpecialLoopCase()
517op << "uniform ${COUNTER_PRECISION} int ui_zero, ui_one, ui_two, ui_three, ui_four, ui_five, ui_si… in createSpecialLoopCase()
519 op << "uniform ${COUNTER_PRECISION} int ui_oneHundredOne;\n"; in createSpecialLoopCase()
526 op << "\n${PRECISION} vec4 func (in ${PRECISION} vec4 coords) { return coords.yzwx; }\n"; in createSpecialLoopCase()
528 op << "\nvoid func (inout ${PRECISION} vec4 coords) { coords = coords.yzwx; }\n"; in createSpecialLoopCase()
553 op << " ${PRECISION} vec4 res = coords;\n"; in createSpecialLoopCase()
568 op << " ${FOR_LOOP} {}\n"; in createSpecialLoopCase()
573 op << " for (;;) { break; res = res.yzwx; }\n"; in createSpecialLoopCase()
578 op << " for (;;) { res = res.yzwx; break; }\n"; in createSpecialLoopCase()
583 op << " ${COUNTER_PRECISION} int i = 0;\n"; in createSpecialLoopCase()
584 op << " for (;;) { res = res.yzwx; if (i == ${ONE}) break; i++; }\n"; in createSpecialLoopCase()
588 op << " ${FOR_LOOP} res = res.yzwx;\n"; in createSpecialLoopCase()
594 op << " ${FOR_LOOP} { res = res.yzwx; res = res.yzwx; }\n"; in createSpecialLoopCase()
600 op << " ${FOR_LOOP} res = res.yzwx, res = res.yzwx;\n"; in createSpecialLoopCase()
606 op << " ${FOR_LOOP} res = res.yzwx;\n"; in createSpecialLoopCase()
612 op << " ${FOR_LOOP} res = res.yzwx;\n"; in createSpecialLoopCase()
616 op << " for (int i = 0; i < (ub_true ? ${ITER_COUNT} : 0); i++) res = res.yzwx;\n"; in createSpecialLoopCase()
621 op << " ${FOR_LOOP} { if (i == ${TWO}) continue; res = res.yzwx; }\n"; in createSpecialLoopCase()
625 op << " ${FOR_LOOP} { res = res.yzwx; continue; }\n"; in createSpecialLoopCase()
630 op << " ${FOR_LOOP} { continue; }\n"; in createSpecialLoopCase()
635 op << " ${FOR_LOOP} { if (i == ${TWO}) continue; res = res.yzwx; continue; }\n"; in createSpecialLoopCase()
640 op << " ${FOR_LOOP} { if (i == ${TWO}) break; res = res.yzwx; }\n"; in createSpecialLoopCase()
645 op << " ${FOR_LOOP} { res = res.yzwx; break; }\n"; in createSpecialLoopCase()
649 op << " for (int i = 0; i < ${ITER_COUNT}; ++i) { res = res.yzwx; }\n"; in createSpecialLoopCase()
653 op << " ${FOR_LOOP} { res = res.yzwx; }\n"; in createSpecialLoopCase()
659 op << " ${FOR_LOOP} { if (i == 0) continue; else if (i == 3) break; res = res.yzwx; }\n"; in createSpecialLoopCase()
663op << " for (${COUNTER_PRECISION} ivec4 i = ivec4(0, 1, ${ITER_COUNT}, 0); i.x < i.z; i.x += i.y) … in createSpecialLoopCase()
668 op << " ${FOR_LOOP} res = res.yzwx;\n"; in createSpecialLoopCase()
674 op << " ${COUNTER_PRECISION} int i;\n"; in createSpecialLoopCase()
675 op << " for (i = 0; i < ${TWO}; i++) { res = res.yzwx; }\n"; in createSpecialLoopCase()
676 op << " for (; i < ${ITER_COUNT}; i++) { res = res.yzwx; }\n"; in createSpecialLoopCase()
681 op << " for (${COUNTER_PRECISION} int i = 0; i < ${TWO}; i++)\n"; in createSpecialLoopCase()
682 op << " {\n"; in createSpecialLoopCase()
683 op << " for (${COUNTER_PRECISION} int j = 0; j < ${ITER_COUNT}; j++)\n"; in createSpecialLoopCase()
684 op << " res = res.yzwx;\n"; in createSpecialLoopCase()
685 op << " }\n"; in createSpecialLoopCase()
690 op << " for (${COUNTER_PRECISION} int i = 0; i < ${ITER_COUNT}; i++)\n"; in createSpecialLoopCase()
691 op << " {\n"; in createSpecialLoopCase()
692 op << " for (${COUNTER_PRECISION} int j = 0; j < ${TWO}; j++)\n"; in createSpecialLoopCase()
693 op << " res = res.yzwx;\n"; in createSpecialLoopCase()
694 op << " for (${COUNTER_PRECISION} int j = 0; j < ${ONE}; j++)\n"; in createSpecialLoopCase()
695 op << " res = res.yzwx;\n"; in createSpecialLoopCase()
696 op << " }\n"; in createSpecialLoopCase()
701 op << " ${FOR_LOOP}\n"; in createSpecialLoopCase()
702 op << " {\n"; in createSpecialLoopCase()
703 op << " res = coords; // ignore outer loop effect \n"; in createSpecialLoopCase()
704 op << " for (${COUNTER_PRECISION} int j = 0; j < ${TWO}; j++)\n"; in createSpecialLoopCase()
705 op << " res = res.yzwx;\n"; in createSpecialLoopCase()
706 op << " }\n"; in createSpecialLoopCase()
711 op << " ${FOR_LOOP}\n"; in createSpecialLoopCase()
712 op << " {\n"; in createSpecialLoopCase()
713 op << " res = coords.wxyz;\n"; in createSpecialLoopCase()
714 op << " for (${COUNTER_PRECISION} int j = 0; j < ${TWO}; j++)\n"; in createSpecialLoopCase()
715 op << " res = res.yzwx;\n"; in createSpecialLoopCase()
716 op << " coords = res;\n"; in createSpecialLoopCase()
717 op << " }\n"; in createSpecialLoopCase()
722 op << " ${FOR_LOOP} if (i < 2) res = res.yzwx;\n"; in createSpecialLoopCase()
727 op << " ${FOR_LOOP}\n"; in createSpecialLoopCase()
728 op << " {\n"; in createSpecialLoopCase()
729 op << " res = func(res);\n"; in createSpecialLoopCase()
730 op << " }\n"; in createSpecialLoopCase()
735 op << " ${FOR_LOOP}\n"; in createSpecialLoopCase()
736 op << " {\n"; in createSpecialLoopCase()
737 op << " func(res);\n"; in createSpecialLoopCase()
738 op << " }\n"; in createSpecialLoopCase()
760 op << " ${WHILE_LOOP} {}\n"; in createSpecialLoopCase()
765 op << " while (true) { break; res = res.yzwx; }\n"; in createSpecialLoopCase()
770 op << " while (true) { res = res.yzwx; break; }\n"; in createSpecialLoopCase()
775 op << " ${COUNTER_PRECISION} int i = 0;\n"; in createSpecialLoopCase()
776 op << " while (true) { res = res.yzwx; if (i == ${ONE}) break; i++; }\n"; in createSpecialLoopCase()
780 op << " ${WHILE_LOOP} res = res.yzwx;\n"; in createSpecialLoopCase()
786 op << " ${WHILE_LOOP} { res = res.yzwx; res = res.yzwx; }\n"; in createSpecialLoopCase()
792 op << " ${WHILE_LOOP} res = res.yzwx, res = res.yzwx;\n"; in createSpecialLoopCase()
798 op << " ${WHILE_LOOP} res = res.yzwx;\n"; in createSpecialLoopCase()
804 op << " ${WHILE_LOOP} res = res.yzwx;\n"; in createSpecialLoopCase()
808 op << " ${COUNTER_PRECISION} int i = 0;\n"; in createSpecialLoopCase()
809 op << " while (i < (ub_true ? ${ITER_COUNT} : 0)) { res = res.yzwx; i++; }\n"; in createSpecialLoopCase()
814 op << " ${WHILE_LOOP} { if (i == ${TWO}) continue; res = res.yzwx; }\n"; in createSpecialLoopCase()
818 op << " ${WHILE_LOOP} { res = res.yzwx; continue; }\n"; in createSpecialLoopCase()
823 op << " ${WHILE_LOOP} { continue; }\n"; in createSpecialLoopCase()
828 op << " ${WHILE_LOOP} { if (i == ${ONE}) continue; res = res.yzwx; continue; }\n"; in createSpecialLoopCase()
833 op << " ${WHILE_LOOP} { if (i == ${THREE}) break; res = res.yzwx; }\n"; in createSpecialLoopCase()
838 op << " ${WHILE_LOOP} { res = res.yzwx; break; }\n"; in createSpecialLoopCase()
843 op << " ${COUNTER_PRECISION} int i = 0;\n"; in createSpecialLoopCase()
844 op << " while (++i < ${ITER_COUNT}) { res = res.yzwx; }\n"; in createSpecialLoopCase()
848 op << " ${COUNTER_PRECISION} int i = 0;\n"; in createSpecialLoopCase()
849 op << " while (i++ < ${ITER_COUNT}) { res = res.yzwx; }\n"; in createSpecialLoopCase()
855 op << " ${WHILE_LOOP} { if (i == 0) continue; else if (i == 3) break; res = res.yzwx; }\n"; in createSpecialLoopCase()
859 op << " ${COUNTER_PRECISION} ivec4 i = ivec4(0, 1, ${ITER_COUNT}, 0);\n"; in createSpecialLoopCase()
860 op << " while (i.x < i.z) { res = res.yzwx; i.x += i.y; }\n"; in createSpecialLoopCase()
865 op << " ${WHILE_LOOP} res = res.yzwx;\n"; in createSpecialLoopCase()
871 op << " ${COUNTER_PRECISION} int i = 0;\n"; in createSpecialLoopCase()
872 op << " while (i++ < ${TWO}) { res = res.yzwx; }\n"; in createSpecialLoopCase()
873 op << " while (i++ < ${ITER_COUNT}) { res = res.yzwx; }\n"; // \note skips one iteration in createSpecialLoopCase()
878 op << " ${COUNTER_PRECISION} int i = 0;\n"; in createSpecialLoopCase()
879 op << " while (i++ < ${TWO})\n"; in createSpecialLoopCase()
880 op << " {\n"; in createSpecialLoopCase()
881 op << " ${COUNTER_PRECISION} int j = 0;\n"; in createSpecialLoopCase()
882 op << " while (j++ < ${ITER_COUNT})\n"; in createSpecialLoopCase()
883 op << " res = res.yzwx;\n"; in createSpecialLoopCase()
884 op << " }\n"; in createSpecialLoopCase()
889 op << " ${COUNTER_PRECISION} int i = 0;\n"; in createSpecialLoopCase()
890 op << " while (i++ < ${ITER_COUNT})\n"; in createSpecialLoopCase()
891 op << " {\n"; in createSpecialLoopCase()
892 op << " ${COUNTER_PRECISION} int j = 0;\n"; in createSpecialLoopCase()
893 op << " while (j++ < ${ONE})\n"; in createSpecialLoopCase()
894 op << " res = res.yzwx;\n"; in createSpecialLoopCase()
895 op << " while (j++ < ${THREE})\n"; // \note skips one iteration in createSpecialLoopCase()
896 op << " res = res.yzwx;\n"; in createSpecialLoopCase()
897 op << " }\n"; in createSpecialLoopCase()
902 op << " ${WHILE_LOOP}\n"; in createSpecialLoopCase()
903 op << " {\n"; in createSpecialLoopCase()
904 op << " res = coords; // ignore outer loop effect \n"; in createSpecialLoopCase()
905 op << " ${COUNTER_PRECISION} int j = 0;\n"; in createSpecialLoopCase()
906 op << " while (j++ < ${TWO})\n"; in createSpecialLoopCase()
907 op << " res = res.yzwx;\n"; in createSpecialLoopCase()
908 op << " }\n"; in createSpecialLoopCase()
913 op << " ${WHILE_LOOP}\n"; in createSpecialLoopCase()
914 op << " {\n"; in createSpecialLoopCase()
915 op << " res = coords.wxyz;\n"; in createSpecialLoopCase()
916 op << " ${COUNTER_PRECISION} int j = 0;\n"; in createSpecialLoopCase()
917 op << " while (j++ < ${TWO})\n"; in createSpecialLoopCase()
918 op << " res = res.yzwx;\n"; in createSpecialLoopCase()
919 op << " coords = res;\n"; in createSpecialLoopCase()
920 op << " }\n"; in createSpecialLoopCase()
925 op << " ${WHILE_LOOP} if (i < 2) res = res.yzwx;\n"; in createSpecialLoopCase()
930 op << " ${WHILE_LOOP}\n"; in createSpecialLoopCase()
931 op << " {\n"; in createSpecialLoopCase()
932 op << " res = func(res);\n"; in createSpecialLoopCase()
933 op << " }\n"; in createSpecialLoopCase()
938 op << " ${WHILE_LOOP}\n"; in createSpecialLoopCase()
939 op << " {\n"; in createSpecialLoopCase()
940 op << " func(res);\n"; in createSpecialLoopCase()
941 op << " }\n"; in createSpecialLoopCase()
965 op << " ${DO_WHILE_PRE} {} ${DO_WHILE_POST}\n"; in createSpecialLoopCase()
970 op << " do { break; res = res.yzwx; } while (true);\n"; in createSpecialLoopCase()
975 op << " do { res = res.yzwx; break; } while (true);\n"; in createSpecialLoopCase()
980 op << " ${COUNTER_PRECISION} int i = 0;\n"; in createSpecialLoopCase()
981 op << " do { res = res.yzwx; if (i == ${ONE}) break; i++; } while (true);\n"; in createSpecialLoopCase()
985 op << " ${DO_WHILE_PRE} res = res.yzwx; ${DO_WHILE_POST}\n"; in createSpecialLoopCase()
991 op << " ${DO_WHILE_PRE} { res = res.yzwx; res = res.yzwx; } ${DO_WHILE_POST}\n"; in createSpecialLoopCase()
997 op << " ${DO_WHILE_PRE} res = res.yzwx, res = res.yzwx; ${DO_WHILE_POST}\n"; in createSpecialLoopCase()
1007 op << " ${DO_WHILE_PRE} res = res.yzwx; ${DO_WHILE_POST}\n"; in createSpecialLoopCase()
1011 op << " ${COUNTER_PRECISION} int i = 0;\n"; in createSpecialLoopCase()
1012 op << " do { res = res.yzwx; } while (++i < (ub_true ? ${ITER_COUNT} : 0));\n"; in createSpecialLoopCase()
1017 op << " ${DO_WHILE_PRE} { if (i == ${TWO}) continue; res = res.yzwx; } ${DO_WHILE_POST}\n"; in createSpecialLoopCase()
1021 op << " ${DO_WHILE_PRE} { res = res.yzwx; continue; } ${DO_WHILE_POST}\n"; in createSpecialLoopCase()
1026 op << " ${DO_WHILE_PRE} { continue; } ${DO_WHILE_POST}\n"; in createSpecialLoopCase()
1031op << " ${DO_WHILE_PRE} { if (i == ${TWO}) continue; res = res.yzwx; continue; } ${DO_WHILE_POST}\… in createSpecialLoopCase()
1036 op << " ${DO_WHILE_PRE} { res = res.yzwx; if (i == ${ONE}) break; } ${DO_WHILE_POST}\n"; in createSpecialLoopCase()
1041 op << " ${DO_WHILE_PRE} { res = res.yzwx; break; } ${DO_WHILE_POST}\n"; in createSpecialLoopCase()
1045 op << " ${COUNTER_PRECISION} int i = 0;\n"; in createSpecialLoopCase()
1046 op << " do { res = res.yzwx; } while (++i < ${ITER_COUNT});\n"; in createSpecialLoopCase()
1051 op << " ${COUNTER_PRECISION} int i = 0;\n"; in createSpecialLoopCase()
1052 op << " do { res = res.yzwx; } while (i++ < ${ITER_COUNT});\n"; in createSpecialLoopCase()
1058op << " ${DO_WHILE_PRE} { if (i == 0) continue; else if (i == 3) break; res = res.yzwx; } ${DO_WHI… in createSpecialLoopCase()
1062 op << " ${COUNTER_PRECISION} ivec4 i = ivec4(0, 1, ${ITER_COUNT}, 0);\n"; in createSpecialLoopCase()
1063 op << " do { res = res.yzwx; } while ((i.x += i.y) < i.z);\n"; in createSpecialLoopCase()
1068 op << " ${DO_WHILE_PRE} res = res.yzwx; ${DO_WHILE_POST}\n"; in createSpecialLoopCase()
1074 op << " ${COUNTER_PRECISION} int i = 0;\n"; in createSpecialLoopCase()
1075 op << " do { res = res.yzwx; } while (++i < ${TWO});\n"; in createSpecialLoopCase()
1076 op << " do { res = res.yzwx; } while (++i < ${ITER_COUNT});\n"; in createSpecialLoopCase()
1081 op << " ${COUNTER_PRECISION} int i = 0;\n"; in createSpecialLoopCase()
1082 op << " do\n"; in createSpecialLoopCase()
1083 op << " {\n"; in createSpecialLoopCase()
1084 op << " ${COUNTER_PRECISION} int j = 0;\n"; in createSpecialLoopCase()
1085 op << " do\n"; in createSpecialLoopCase()
1086 op << " res = res.yzwx;\n"; in createSpecialLoopCase()
1087 op << " while (++j < ${ITER_COUNT});\n"; in createSpecialLoopCase()
1088 op << " } while (++i < ${TWO});\n"; in createSpecialLoopCase()
1093 op << " ${COUNTER_PRECISION} int i = 0;\n"; in createSpecialLoopCase()
1094 op << " do\n"; in createSpecialLoopCase()
1095 op << " {\n"; in createSpecialLoopCase()
1096 op << " ${COUNTER_PRECISION} int j = 0;\n"; in createSpecialLoopCase()
1097 op << " do\n"; in createSpecialLoopCase()
1098 op << " res = res.yzwx;\n"; in createSpecialLoopCase()
1099 op << " while (++j < ${TWO});\n"; in createSpecialLoopCase()
1100 op << " do\n"; in createSpecialLoopCase()
1101 op << " res = res.yzwx;\n"; in createSpecialLoopCase()
1102 op << " while (++j < ${THREE});\n"; in createSpecialLoopCase()
1103 op << " } while (++i < ${ITER_COUNT});\n"; in createSpecialLoopCase()
1108 op << " ${DO_WHILE_PRE}\n"; in createSpecialLoopCase()
1109 op << " {\n"; in createSpecialLoopCase()
1110 op << " res = coords; // ignore outer loop effect \n"; in createSpecialLoopCase()
1111 op << " ${COUNTER_PRECISION} int j = 0;\n"; in createSpecialLoopCase()
1112 op << " do\n"; in createSpecialLoopCase()
1113 op << " res = res.yzwx;\n"; in createSpecialLoopCase()
1114 op << " while (++j < ${TWO});\n"; in createSpecialLoopCase()
1115 op << " } ${DO_WHILE_POST}\n"; in createSpecialLoopCase()
1120 op << " ${DO_WHILE_PRE}\n"; in createSpecialLoopCase()
1121 op << " {\n"; in createSpecialLoopCase()
1122 op << " res = coords.wxyz;\n"; in createSpecialLoopCase()
1123 op << " ${COUNTER_PRECISION} int j = 0;\n"; in createSpecialLoopCase()
1124 op << " while (j++ < ${TWO})\n"; in createSpecialLoopCase()
1125 op << " res = res.yzwx;\n"; in createSpecialLoopCase()
1126 op << " coords = res;\n"; in createSpecialLoopCase()
1127 op << " } ${DO_WHILE_POST}\n"; in createSpecialLoopCase()
1132 op << " ${DO_WHILE_PRE} if (i < 2) res = res.yzwx; ${DO_WHILE_POST}\n"; in createSpecialLoopCase()
1137 op << " ${DO_WHILE_PRE}\n"; in createSpecialLoopCase()
1138 op << " {\n"; in createSpecialLoopCase()
1139 op << " res = func(res);\n"; in createSpecialLoopCase()
1140 op << " } ${DO_WHILE_POST}\n"; in createSpecialLoopCase()
1145 op << " ${DO_WHILE_PRE}\n"; in createSpecialLoopCase()
1146 op << " {\n"; in createSpecialLoopCase()
1147 op << " func(res);\n"; in createSpecialLoopCase()
1148 op << " } ${DO_WHILE_POST}\n"; in createSpecialLoopCase()