Lines Matching full:codeappend
60 g->codeAppend ("float area_x2 = determinant(float2x2(pts[0] - pts[1], pts[0] - pts[2]));");
62 g->codeAppend ("area_x2 += determinant(float2x2(pts[0] - pts[2], pts[0] - pts[3]));");
130 g->codeAppend ("float2 leftbloat = float2(top.y > left.y ? +bloat : -bloat, "
132 g->codeAppend ("float2 rightbloat = float2(right.y > top.y ? +bloat : -bloat, "
134 g->codeAppend ("float2 downbloat = float2(left.y > right.y ? +bloat : -bloat, "
143 g->codeAppend ("if (all(left_right_notequal)) {");
147 g->codeAppend ("}");
148 g->codeAppend ("if (any(left_right_notequal)) {");
151 g->codeAppend ("}");
163 g->codeAppend ("if (any(right_down_notequal) || 0 == sk_InvocationID) {");
166 g->codeAppend ("}");
167 g->codeAppend ("if (all(right_down_notequal) && 0 != sk_InvocationID) {");
169 g->codeAppend ("}");
198 g->codeAppend ("int i = sk_InvocationID * 2;");
205 g->codeAppend ("float2 leftbloat = float2(topleft.y > bottomleft.y ? +bloat : -bloat, "
207 g->codeAppend ("float2 upbloat = float2(topright.y > topleft.y ? +bloat : -bloat, "
209 g->codeAppend ("float2 rightbloat = float2(bottomright.y > topright.y ? +bloat : -bloat, "
218 g->codeAppend ("if (all(left_up_notequal)) {");
222 g->codeAppend ("}");
223 g->codeAppend ("if (any(left_up_notequal)) {");
226 g->codeAppend ("}");
235 g->codeAppend ("if (any(up_right_notequal)) {");
237 g->codeAppend ("}");
238 g->codeAppend ("if (all(up_right_notequal)) {");
240 g->codeAppend ("}");
257 g->codeAppend ("int nextidx = 2 != sk_InvocationID ? sk_InvocationID + 1 : 0;");
264 g->codeAppend ("float2 qlr = sign(right - left);");
265 g->codeAppend ("float2x2 outer_pts = float2x2(left - bloat * qlr, right + bloat * qlr);");
266 g->codeAppend ("half2 outer_coverage = edge_distance_equation.xy * outer_pts + "
269 g->codeAppend ("float2 d1 = float2(qlr.y, -qlr.x);");
270 g->codeAppend ("float2 d2 = d1;");
271 g->codeAppend ("bool aligned = qlr.x == 0 || qlr.y == 0;");
272 g->codeAppend ("if (aligned) {");
273 g->codeAppend ( "d1 -= qlr;");
274 g->codeAppend ( "d2 += qlr;");
275 g->codeAppend ("}");
280 g->codeAppend ("if (!aligned) {");
282 g->codeAppend ("}");
287 g->codeAppend ("if (!aligned) {");
289 g->codeAppend ("}");