Home | History | Annotate | Download | only in effects

Lines Matching full:domain

20  * Limits a texture's lookup coordinates to a domain. Samples outside the domain are either clamped
21 * the edge of the domain or result in a vec4 of zeros (decal mode). The domain is clipped to
23 * domain to affect the read value unless the caller considers this when calculating the domain.
28 // Ignore the texture domain rectangle.
30 // Clamp texture coords to the domain rectangle.
32 // Treat the area outside the domain rectangle as fully transparent.
35 // read texels outside of the domain. We could perform additional texture reads and filter
53 GrTextureDomain(const SkRect& domain, Mode, int index = -1);
55 const SkRect& domain() const { return fDomain; }
58 /* Computes a domain that bounds all the texels in texelRect. Note that with bilerp enabled
59 texels neighboring the domain may be read. */
91 * should include this helper. It generates the texture domain GLSL, produces the part of the
92 * effect key that reflects the texture domain code, and performs the uniform uploads necessary
103 * Call this from GrGLProcessor::emitCode() to sample the texture W.R.T. the domain and
107 * @param inCoords name of vec2 variable containing the coords to be used with the domain.
121 * domain. The rectangle is automatically adjusted to account for the texture's origin.
134 static uint32_t DomainKey(const GrTextureDomain& domain) {
136 return domain.mode();
162 const SkRect& domain,
183 const SkRect& domain,