• Home
  • Raw
  • Download

Lines Matching refs:codeAppendf

56         g->codeAppendf("float%ix2 pts = transpose(float2x%i(sk_in[0].%s, sk_in[1].%s));",  in emitGeometryShader()
65 g->codeAppendf("%s *= sk_in[0].sk_Position.w;", wind.c_str()); in emitGeometryShader()
141 g->codeAppendf("int i = (%s > 0 ? sk_InvocationID : 4 - sk_InvocationID) %% 3;", in onEmitGeometryShader()
144 g->codeAppendf("float2 right = pts[(i + (%s > 0 ? 1 : 2)) %% 3];", wind.c_str()); in onEmitGeometryShader()
145 g->codeAppendf("float2 left = pts[(i + (%s > 0 ? 2 : 1)) %% 3];", wind.c_str()); in onEmitGeometryShader()
181 g->codeAppendf("bool2 left_right_notequal = notEqual(leftbloat, rightbloat);"); in onEmitGeometryShader()
185 g->codeAppendf( "%s(top, float2(-leftbloat.y, +leftbloat.x), coverages[0]);", in onEmitGeometryShader()
190 g->codeAppendf( "%s(top, rightbloat, coverages[1]);", emitVertexFn); in onEmitGeometryShader()
194 g->codeAppendf("%s(top, leftbloat, coverages[2]);", emitVertexFn); in onEmitGeometryShader()
195 g->codeAppendf("%s(right, rightbloat, coverages[1]);", emitVertexFn); in onEmitGeometryShader()
203 g->codeAppendf("bool2 right_down_notequal = notEqual(rightbloat, downbloat);"); in onEmitGeometryShader()
205 g->codeAppendf( "%s((0 == sk_InvocationID) ? left : right, " in onEmitGeometryShader()
210 g->codeAppendf( "%s(right, float2(-rightbloat.y, +rightbloat.x), coverages[3]);", in onEmitGeometryShader()
238 g->codeAppendf("float2 topleft = %s[i];", hullPts); in onEmitGeometryShader()
239 g->codeAppendf("float2 topright = %s[%s > 0 ? i + 1 : 3 - i];", hullPts, wind.c_str()); in onEmitGeometryShader()
240 g->codeAppendf("float2 bottomleft = %s[%s > 0 ? 3 - i : i + 1];", hullPts, wind.c_str()); in onEmitGeometryShader()
241 g->codeAppendf("float2 bottomright = %s[2 - i];", hullPts); in onEmitGeometryShader()
256 g->codeAppendf("bool2 left_up_notequal = notEqual(leftbloat, upbloat);"); in onEmitGeometryShader()
260 g->codeAppendf( "%s(topleft, float2(-leftbloat.y, leftbloat.x));", emitVertexFn); in onEmitGeometryShader()
264 g->codeAppendf( "%s(topleft, leftbloat);", emitVertexFn); in onEmitGeometryShader()
268 g->codeAppendf("%s(topleft, upbloat);", emitVertexFn); in onEmitGeometryShader()
269 g->codeAppendf("%s(bottomleft, leftbloat);", emitVertexFn); in onEmitGeometryShader()
270 g->codeAppendf("%s(topright, upbloat);", emitVertexFn); in onEmitGeometryShader()
273 g->codeAppendf("bool2 up_right_notequal = notEqual(upbloat, rightbloat);"); in onEmitGeometryShader()
275 g->codeAppendf( "%s(topright, rightbloat);", emitVertexFn); in onEmitGeometryShader()
278 g->codeAppendf( "%s(topright, float2(-upbloat.y, upbloat.x));", emitVertexFn); in onEmitGeometryShader()
299 g->codeAppendf("int corneridx = sk_InvocationID;"); in onEmitGeometryShader()
301 g->codeAppendf("corneridx *= %i;", proc.numInputPoints() - 1); in onEmitGeometryShader()
304 g->codeAppendf("float2 corner = pts[corneridx];"); in onEmitGeometryShader()
305 g->codeAppendf("float2 left = pts[(corneridx + (%s > 0 ? %i : 1)) %% %i];", in onEmitGeometryShader()
307 g->codeAppendf("float2 right = pts[(corneridx + (%s > 0 ? 1 : %i)) %% %i];", in onEmitGeometryShader()
346 g->codeAppendf("%s(corner, -crossbloat, right_coverages[1] - left_coverages[1]," in onEmitGeometryShader()
350 g->codeAppendf("%s(corner, outbloat, 1 + left_coverages[0] + right_coverages[0], " in onEmitGeometryShader()
354 g->codeAppendf("%s(corner, -outbloat, -1 - left_coverages[0] - right_coverages[0], " in onEmitGeometryShader()
358 g->codeAppendf("%s(corner, crossbloat, left_coverages[1] - right_coverages[1]," in onEmitGeometryShader()
367 g->codeAppendf("%s(corner, -crossbloat, -1, half2(1));", emitVertexFn); in onEmitGeometryShader()
368 g->codeAppendf("%s(corner, outbloat, -1, half2(0, attenuation));", in onEmitGeometryShader()
370 g->codeAppendf("%s(corner, -outbloat, -1, half2(1));", emitVertexFn); in onEmitGeometryShader()
371 g->codeAppendf("%s(corner, crossbloat, -1, half2(1));", emitVertexFn); in onEmitGeometryShader()