Lines Matching defs:access
50 static inline bool coordsInBounds (const ConstPixelBufferAccess& access, int x, int y, int z)
52 return de::inBounds(x, 0, access.getWidth()) && de::inBounds(y, 0, access.getHeight()) && de::inBounds(z, 0, access.getDepth());
56 inline Vector<ScalarType, 4> lookup (const ConstPixelBufferAccess& access, const Sampler& sampler, int i, int j, int k)
58 if (coordsInBounds(access, i, j, k))
59 return access.getPixelT<ScalarType>(i, j, k);
61 return sampleTextureBorder<ScalarType>(access.getFormat(), sampler);
65 inline Vector<float, 4> lookup (const ConstPixelBufferAccess& access, const Sampler& sampler, int i, int j, int k)
68 if (coordsInBounds(access, i, j, k))
70 const Vec4 p = access.getPixel(i, j, k);
71 return isSRGB(access.getFormat()) ? sRGBToLinear(p) : p;
74 return sampleTextureBorder<float>(access.getFormat(), sampler);
2325 bool isLevel1DLookupResultValid (const ConstPixelBufferAccess& access,
2334 return isLevelSampleResultValid(access, sampler, filterMode, prec, coordX, coordY, result);
2337 bool isLevel1DLookupResultValid (const ConstPixelBufferAccess& access,
2347 return isNearestSampleResultValid(access, sampler, prec, coordX, coordY, result);
2350 bool isLevel1DLookupResultValid (const ConstPixelBufferAccess& access,
2360 return isNearestSampleResultValid(access, sampler, prec, coordX, coordY, result);
2363 bool isLevel2DLookupResultValid (const ConstPixelBufferAccess& access,
2372 return isLevelSampleResultValid(access, sampler, filterMode, prec, coord, coordZ, result);
2375 bool isLevel2DLookupResultValid (const ConstPixelBufferAccess& access,
2385 return isNearestSampleResultValid(access, sampler, prec, coord, coordZ, result);
2388 bool isLevel2DLookupResultValid (const ConstPixelBufferAccess& access,
2398 return isNearestSampleResultValid(access, sampler, prec, coord, coordZ, result);
2401 bool isLevel3DLookupResultValid (const ConstPixelBufferAccess& access,
2409 return isLevelSampleResultValid(access, sampler, filterMode, prec, coord, result);
2412 bool isLevel3DLookupResultValid (const ConstPixelBufferAccess& access,
2421 return isNearestSampleResultValid(access, sampler, prec, coord, result);
2424 bool isLevel3DLookupResultValid (const ConstPixelBufferAccess& access,
2433 return isNearestSampleResultValid(access, sampler, prec, coord, result);