Lines Matching refs:coverage
237 * Determines whether the output coverage is guaranteed to be one for all pixels hit by a draw.
301 /// @name Coverage
305 * Sets a constant fractional coverage to be applied to the draw. The
307 * coverage is ignored when per-vertex coverage is provided.
309 void setCoverage(uint8_t coverage) {
310 fCommon.fCoverage = GrColorPackRGBA(coverage, coverage, coverage, coverage);
325 /// Each stage hosts a GrEffect. The effect produces an output color or coverage in the fragment
330 /// The stages are divided into two sets, color-computing and coverage-computing. The final
331 /// color stage produces the final pixel color. The coverage-computing stages function exactly
332 /// as the color-computing but the output of the final coverage stage is treated as a fractional
333 /// pixel coverage rather than as input to the src/dst color blend step.
336 /// per-vertex colors. The input to the first coverage stage is either a constant coverage
337 /// (usually full-coverage) or interpolated per-vertex coverage.
340 /// the color / coverage distinction.
458 GrPrintf("Unexpected dst blend coeff. Won't work correctly with coverage stages.\n");
461 GrPrintf("Unexpected src blend coeff. Won't work correctly with coverage stages.\n");
495 * coverage before the blend will give the correct final destination color. In general it
496 * will not as coverage is applied after blending.
501 * Optimizations for blending / coverage to that can be applied based on the current state.
517 * The coverage value does not have to be computed separately from alpha, the the output
522 * Instead of emitting a src color, emit coverage in the alpha channel and r,g,b are
527 * Emit transparent black instead of the src color, no need to compute coverage.
537 * state to see if coverage is enabled. By setting forceCoverage the caller can speculatively
538 * determine the blend optimizations that would be used if there was partial pixel coverage.
741 * Usually coverage is applied after color blending. The color is blended using the coeffs
743 * of src_coverage, 1-src_coverage. Sometimes we are explicitly drawing a coverage mask. In
744 * this case there is no distinction between coverage and color and the caller needs direct
746 * setBlendFunc() which will use coverage*color as the src color.