Home | History | Annotate | Download | only in effects

Lines Matching refs:domain

23  * Limits a texture's lookup coordinates to a domain. Samples outside the domain are either clamped
24 * the edge of the domain or result in a half4 of zeros (decal mode). The domain is clipped to
26 * domain to affect the read value unless the caller considers this when calculating the domain.
31 // Ignore the texture domain rectangle.
33 // Clamp texture coords to the domain rectangle.
35 // Treat the area outside the domain rectangle as fully transparent.
38 // read texels outside of the domain. We could perform additional texture reads and filter
56 GrTextureDomain(GrTextureProxy*, const SkRect& domain, Mode modeX, Mode modeY, int index = -1);
60 const SkRect& domain() const { return fDomain; }
65 * Computes a domain that bounds all the texels in texelRect, possibly insetting by half a pixel
110 * GrTextureDomain should include this helper. It generates the texture domain GLSL, produces
111 * the part of the effect key that reflects the texture domain code, and performs the uniform
124 * domain and mode.
127 * @param inCoords name of float2 variable containing the coords to be used with the domain.
143 * texture domain. The rectangle is automatically adjusted to account for the texture's
158 static uint32_t DomainKey(const GrTextureDomain& domain) {
160 return domain.modeX() | (domain.modeY() << kModeBits);
171 // Only initialized if the domain has at least one decal axis
192 const SkRect& domain,
198 const SkRect& domain,
212 str.appendf("Domain: [L: %.2f, T: %.2f, R: %.2f, B: %.2f]",
213 fTextureDomain.domain().fLeft, fTextureDomain.domain().fTop,
214 fTextureDomain.domain().fRight, fTextureDomain.domain().fBottom);
227 const SkRect& domain,
258 str.appendf("Domain: [L: %.2f, T: %.2f, R: %.2f, B: %.2f] Offset: [%d %d]",
259 fTextureDomain.domain().fLeft, fTextureDomain.domain().fTop,
260 fTextureDomain.domain().fRight, fTextureDomain.domain().fBottom,