Home | History | Annotate | Download | only in effects

Lines Matching refs:domain

18  * Limits a texture's lookup coordinates to a domain. Samples outside the domain are either clamped
19 * the edge of the domain or result in a vec4 of zeros (decal mode). The domain is clipped to
21 * domain to affect the read value unless the caller considers this when calculating the domain.
26 kIgnore_Mode, // Ignore the texture domain rectangle.
27 kClamp_Mode, // Clamp texture coords to the domain rectangle.
28 kDecal_Mode, // Treat the area outside the domain rectangle as fully transparent.
38 GrTextureDomain(const SkRect& domain, Mode, int index = -1);
40 const SkRect& domain() const { return fDomain; }
43 /* Computes a domain that bounds all the texels in texelRect. Note that with bilerp enabled
44 texels neighboring the domain may be read. */
63 * should include this helper. It generates the texture domain GLSL, produces the part of the
64 * effect key that reflects the texture domain code, and performs the uniform uploads necessary
75 * Call this from GrGLEffect::emitCode() to sample the texture W.R.T. the domain and mode.
78 * @param inCoords name of vec2 variable containing the coords to be used with the domain.
91 * Call this from GrGLEffect::setData() to upload uniforms necessary for the texture domain.
105 static GrGLEffect::EffectKey DomainKey(const GrTextureDomain& domain) {
107 return domain.mode();
135 const SkRect& domain,
157 const SkRect& domain,