Lines Matching refs:codeAppend
143 g->codeAppend ("float2 top = pts[i];"); in onEmitGeometryShader()
148 g->codeAppend ("float2 leftbloat = sign(top - left);"); in onEmitGeometryShader()
149 g->codeAppend ("leftbloat = float2(0 != leftbloat.y ? leftbloat.y : leftbloat.x, " in onEmitGeometryShader()
152 g->codeAppend ("float2 rightbloat = sign(right - top);"); in onEmitGeometryShader()
153 g->codeAppend ("rightbloat = float2(0 != rightbloat.y ? rightbloat.y : rightbloat.x, " in onEmitGeometryShader()
156 g->codeAppend ("float2 downbloat = sign(left - right);"); in onEmitGeometryShader()
157 g->codeAppend ("downbloat = float2(0 != downbloat.y ? downbloat.y : downbloat.x, " in onEmitGeometryShader()
161 g->codeAppend ("half4 coverages = half4(+1);"); in onEmitGeometryShader()
164 g->codeAppend ("if (sk_InvocationID >= 2) {"); // Are we an edge? in onEmitGeometryShader()
168 g->codeAppend ( "coverages.yzw = half3(-1, 0, -1 - coverages[0]);"); in onEmitGeometryShader()
171 g->codeAppend ( "leftbloat = downbloat = -rightbloat;"); in onEmitGeometryShader()
172 g->codeAppend ("}"); in onEmitGeometryShader()
182 g->codeAppend ("if (all(left_right_notequal)) {"); in onEmitGeometryShader()
187 g->codeAppend ("}"); in onEmitGeometryShader()
188 g->codeAppend ("if (any(left_right_notequal)) {"); in onEmitGeometryShader()
191 g->codeAppend ("}"); in onEmitGeometryShader()
204 g->codeAppend ("if (any(right_down_notequal) || 0 == sk_InvocationID) {"); in onEmitGeometryShader()
208 g->codeAppend ("}"); in onEmitGeometryShader()
209 g->codeAppend ("if (all(right_down_notequal) && 0 != sk_InvocationID) {"); in onEmitGeometryShader()
212 g->codeAppend ("}"); in onEmitGeometryShader()
237 g->codeAppend ("int i = sk_InvocationID * 2;"); in onEmitGeometryShader()
244 g->codeAppend ("float2 leftbloat = float2(topleft.y > bottomleft.y ? +1 : -1, " in onEmitGeometryShader()
246 g->codeAppend ("float2 upbloat = float2(topright.y > topleft.y ? +1 : -1, " in onEmitGeometryShader()
248 g->codeAppend ("float2 rightbloat = float2(bottomright.y > topright.y ? +1 : -1, " in onEmitGeometryShader()
257 g->codeAppend ("if (all(left_up_notequal)) {"); in onEmitGeometryShader()
261 g->codeAppend ("}"); in onEmitGeometryShader()
262 g->codeAppend ("if (any(left_up_notequal)) {"); in onEmitGeometryShader()
265 g->codeAppend ("}"); in onEmitGeometryShader()
274 g->codeAppend ("if (any(up_right_notequal)) {"); in onEmitGeometryShader()
276 g->codeAppend ("}"); in onEmitGeometryShader()
277 g->codeAppend ("if (all(up_right_notequal)) {"); in onEmitGeometryShader()
279 g->codeAppend ("}"); in onEmitGeometryShader()
310 g->codeAppend ("float2 leftdir = corner - left;"); in onEmitGeometryShader()
311 g->codeAppend ("leftdir = (float2(0) != leftdir) ? normalize(leftdir) : float2(1, 0);"); in onEmitGeometryShader()
313 g->codeAppend ("float2 rightdir = right - corner;"); in onEmitGeometryShader()
314 g->codeAppend ("rightdir = (float2(0) != rightdir) ? normalize(rightdir) : float2(1, 0);"); in onEmitGeometryShader()
319 g->codeAppend ("float2 outbloat = float2(leftdir.x > rightdir.x ? +1 : -1, " in onEmitGeometryShader()
321 g->codeAppend ("float2 crossbloat = float2(-outbloat.y, +outbloat.x);"); in onEmitGeometryShader()
323 g->codeAppend ("half attenuation; {"); in onEmitGeometryShader()
325 g->codeAppend ("}"); in onEmitGeometryShader()
328 g->codeAppend ("half2 left_coverages; {"); in onEmitGeometryShader()
331 g->codeAppend ("}"); in onEmitGeometryShader()
333 g->codeAppend ("half2 right_coverages; {"); in onEmitGeometryShader()
336 g->codeAppend ("}"); in onEmitGeometryShader()