Lines Matching refs:sampler
39 static bool isSamplerSupported (const Sampler& sampler) in isSamplerSupported() argument
41 return sampler.compare == Sampler::COMPAREMODE_NONE && in isSamplerSupported()
42 isWrapModeSupported(sampler.wrapS) && in isSamplerSupported()
43 isWrapModeSupported(sampler.wrapT) && in isSamplerSupported()
44 isWrapModeSupported(sampler.wrapR); in isSamplerSupported()
56 inline Vector<ScalarType, 4> lookup (const ConstPixelBufferAccess& access, const Sampler& sampler, … in lookup() argument
61 return sampleTextureBorder<ScalarType>(access.getFormat(), sampler); in lookup()
65 inline Vector<float, 4> lookup (const ConstPixelBufferAccess& access, const Sampler& sampler, int i… in lookup() argument
74 return sampleTextureBorder<float>(access.getFormat(), sampler); in lookup()
101 static void lookupQuad (ColorQuad& dst, const ConstPixelBufferAccess& level, const Sampler& sampler… in lookupQuad() argument
103 dst.p00 = lookup<float>(level, sampler, x0, y0, z); in lookupQuad()
104 dst.p10 = lookup<float>(level, sampler, x1, y0, z); in lookupQuad()
105 dst.p01 = lookup<float>(level, sampler, x0, y1, z); in lookupQuad()
106 dst.p11 = lookup<float>(level, sampler, x1, y1, z); in lookupQuad()
115 static void lookupLine (ColorLine& dst, const ConstPixelBufferAccess& level, const Sampler& sampler… in lookupLine() argument
117 dst.p0 = lookup<float>(level, sampler, x0, y, 0); in lookupLine()
118 dst.p1 = lookup<float>(level, sampler, x1, y, 0); in lookupLine()
491 const Sampler& sampler, in isNearestSampleResultValid() argument
499 …const Vec2 uBounds = computeNonNormalizedCoordBounds(sampler.normalizedCoords, level.getWidth()… in isNearestSampleResultValid()
506 const int x = wrap(sampler.wrapS, i, level.getWidth()); in isNearestSampleResultValid()
507 const Vector<ScalarType, 4> color = lookup<ScalarType>(level, sampler, x, coordY, 0); in isNearestSampleResultValid()
518 const Sampler& sampler, in isNearestSampleResultValid() argument
524 …const Vec2 uBounds = computeNonNormalizedCoordBounds(sampler.normalizedCoords, level.getWidth()… in isNearestSampleResultValid()
525 …const Vec2 vBounds = computeNonNormalizedCoordBounds(sampler.normalizedCoords, level.getHeight(… in isNearestSampleResultValid()
539 const int x = wrap(sampler.wrapS, i, level.getWidth()); in isNearestSampleResultValid()
540 const int y = wrap(sampler.wrapT, j, level.getHeight()); in isNearestSampleResultValid()
541 const Vector<ScalarType, 4> color = lookup<ScalarType>(level, sampler, x, y, coordZ); in isNearestSampleResultValid()
553 const Sampler& sampler, in isNearestSampleResultValid() argument
558 …const Vec2 uBounds = computeNonNormalizedCoordBounds(sampler.normalizedCoords, level.getWidth()… in isNearestSampleResultValid()
559 …const Vec2 vBounds = computeNonNormalizedCoordBounds(sampler.normalizedCoords, level.getHeight(… in isNearestSampleResultValid()
560 …const Vec2 wBounds = computeNonNormalizedCoordBounds(sampler.normalizedCoords, level.getDepth()… in isNearestSampleResultValid()
578 const int x = wrap(sampler.wrapS, i, level.getWidth()); in isNearestSampleResultValid()
579 const int y = wrap(sampler.wrapT, j, level.getHeight()); in isNearestSampleResultValid()
580 const int z = wrap(sampler.wrapR, k, level.getDepth()); in isNearestSampleResultValid()
581 const Vector<ScalarType, 4> color = lookup<ScalarType>(level, sampler, x, y, z); in isNearestSampleResultValid()
593 const Sampler& sampler, in isLinearSampleResultValid() argument
599 …const Vec2 uBounds = computeNonNormalizedCoordBounds(sampler.normalizedCoords, level.getWidt… in isLinearSampleResultValid()
609 const int x0 = wrap(sampler.wrapS, i , w); in isLinearSampleResultValid()
610 const int x1 = wrap(sampler.wrapS, i+1, w); in isLinearSampleResultValid()
616 const Vec4 colorA = lookup<float>(level, sampler, x0, coordY, 0); in isLinearSampleResultValid()
617 const Vec4 colorB = lookup<float>(level, sampler, x1, coordY, 0); in isLinearSampleResultValid()
627 const Sampler& sampler, in isLinearSampleResultValid() argument
633 …const Vec2 uBounds = computeNonNormalizedCoordBounds(sampler.normalizedCoords, level.getWidt… in isLinearSampleResultValid()
634 …const Vec2 vBounds = computeNonNormalizedCoordBounds(sampler.normalizedCoords, level.getHeig… in isLinearSampleResultValid()
657 const int x0 = wrap(sampler.wrapS, i , w); in isLinearSampleResultValid()
658 const int x1 = wrap(sampler.wrapS, i+1, w); in isLinearSampleResultValid()
659 const int y0 = wrap(sampler.wrapT, j , h); in isLinearSampleResultValid()
660 const int y1 = wrap(sampler.wrapT, j+1, h); in isLinearSampleResultValid()
669 lookupQuad(quad, level, sampler, x0, x1, y0, y1, coordZ); in isLinearSampleResultValid()
683 const Sampler& sampler, in isLinearSampleResultValid() argument
688 …const Vec2 uBounds = computeNonNormalizedCoordBounds(sampler.normalizedCoords, level.getWidt… in isLinearSampleResultValid()
689 …const Vec2 vBounds = computeNonNormalizedCoordBounds(sampler.normalizedCoords, level.getHeig… in isLinearSampleResultValid()
690 …const Vec2 wBounds = computeNonNormalizedCoordBounds(sampler.normalizedCoords, level.getDept… in isLinearSampleResultValid()
718 const int x0 = wrap(sampler.wrapS, i , w); in isLinearSampleResultValid()
719 const int x1 = wrap(sampler.wrapS, i+1, w); in isLinearSampleResultValid()
720 const int y0 = wrap(sampler.wrapT, j , h); in isLinearSampleResultValid()
721 const int y1 = wrap(sampler.wrapT, j+1, h); in isLinearSampleResultValid()
722 const int z0 = wrap(sampler.wrapR, k , d); in isLinearSampleResultValid()
723 const int z1 = wrap(sampler.wrapR, k+1, d); in isLinearSampleResultValid()
734 lookupQuad(quad0, level, sampler, x0, x1, y0, y1, z0); in isLinearSampleResultValid()
735 lookupQuad(quad1, level, sampler, x0, x1, y0, y1, z1); in isLinearSampleResultValid()
751 const Sampler& sampler, in isNearestMipmapLinearSampleResultValid() argument
761 …const Vec2 uBounds0 = computeNonNormalizedCoordBounds(sampler.normalizedCoords, w0, coord, prec.… in isNearestMipmapLinearSampleResultValid()
762 …const Vec2 uBounds1 = computeNonNormalizedCoordBounds(sampler.normalizedCoords, w1, coord, prec.… in isNearestMipmapLinearSampleResultValid()
774 const Vec4 c0 = lookup<float>(level0, sampler, wrap(sampler.wrapS, i0, w0), coordY, 0); in isNearestMipmapLinearSampleResultValid()
775 const Vec4 c1 = lookup<float>(level1, sampler, wrap(sampler.wrapS, i1, w1), coordY, 0); in isNearestMipmapLinearSampleResultValid()
787 const Sampler& sampler, in isNearestMipmapLinearSampleResultValid() argument
799 …const Vec2 uBounds0 = computeNonNormalizedCoordBounds(sampler.normalizedCoords, w0, coord.x(), p… in isNearestMipmapLinearSampleResultValid()
800 …const Vec2 uBounds1 = computeNonNormalizedCoordBounds(sampler.normalizedCoords, w1, coord.x(), p… in isNearestMipmapLinearSampleResultValid()
801 …const Vec2 vBounds0 = computeNonNormalizedCoordBounds(sampler.normalizedCoords, h0, coord.y(), p… in isNearestMipmapLinearSampleResultValid()
802 …const Vec2 vBounds1 = computeNonNormalizedCoordBounds(sampler.normalizedCoords, h1, coord.y(), p… in isNearestMipmapLinearSampleResultValid()
822 …const Vec4 c0 = lookup<float>(level0, sampler, wrap(sampler.wrapS, i0, w0), wrap(sampler.wrapT, j0… in isNearestMipmapLinearSampleResultValid()
823 …const Vec4 c1 = lookup<float>(level1, sampler, wrap(sampler.wrapS, i1, w1), wrap(sampler.wrapT, j1… in isNearestMipmapLinearSampleResultValid()
837 const Sampler& sampler, in isNearestMipmapLinearSampleResultValid() argument
850 …const Vec2 uBounds0 = computeNonNormalizedCoordBounds(sampler.normalizedCoords, w0, coord.x(), p… in isNearestMipmapLinearSampleResultValid()
851 …const Vec2 uBounds1 = computeNonNormalizedCoordBounds(sampler.normalizedCoords, w1, coord.x(), p… in isNearestMipmapLinearSampleResultValid()
852 …const Vec2 vBounds0 = computeNonNormalizedCoordBounds(sampler.normalizedCoords, h0, coord.y(), p… in isNearestMipmapLinearSampleResultValid()
853 …const Vec2 vBounds1 = computeNonNormalizedCoordBounds(sampler.normalizedCoords, h1, coord.y(), p… in isNearestMipmapLinearSampleResultValid()
854 …const Vec2 wBounds0 = computeNonNormalizedCoordBounds(sampler.normalizedCoords, d0, coord.z(), p… in isNearestMipmapLinearSampleResultValid()
855 …const Vec2 wBounds1 = computeNonNormalizedCoordBounds(sampler.normalizedCoords, d1, coord.z(), p… in isNearestMipmapLinearSampleResultValid()
883 …onst Vec4 c0 = lookup<float>(level0, sampler, wrap(sampler.wrapS, i0, w0), wrap(sampler.wrapT, j0,… in isNearestMipmapLinearSampleResultValid()
884 …onst Vec4 c1 = lookup<float>(level1, sampler, wrap(sampler.wrapS, i1, w1), wrap(sampler.wrapT, j1,… in isNearestMipmapLinearSampleResultValid()
900 const Sampler& sampler, in isLinearMipmapLinearSampleResultValid() argument
913 …const Vec2 uBounds0 = computeNonNormalizedCoordBounds(sampler.normalizedCoords, w0, coordX, p… in isLinearMipmapLinearSampleResultValid()
914 …const Vec2 uBounds1 = computeNonNormalizedCoordBounds(sampler.normalizedCoords, w1, coordX, p… in isLinearMipmapLinearSampleResultValid()
933 const int x0 = wrap(sampler.wrapS, i0 , w0); in isLinearMipmapLinearSampleResultValid()
934 const int x1 = wrap(sampler.wrapS, i0+1, w0); in isLinearMipmapLinearSampleResultValid()
935 lookupLine(line0, level0, sampler, x0, x1, coordY); in isLinearMipmapLinearSampleResultValid()
952 const int x0 = wrap(sampler.wrapS, i1 , w1); in isLinearMipmapLinearSampleResultValid()
953 const int x1 = wrap(sampler.wrapS, i1+1, w1); in isLinearMipmapLinearSampleResultValid()
954 lookupLine(line1, level1, sampler, x0, x1, coordY); in isLinearMipmapLinearSampleResultValid()
975 const Sampler& sampler, in isLinearMipmapLinearSampleResultValid() argument
990 …const Vec2 uBounds0 = computeNonNormalizedCoordBounds(sampler.normalizedCoords, w0, coord.x()… in isLinearMipmapLinearSampleResultValid()
991 …const Vec2 uBounds1 = computeNonNormalizedCoordBounds(sampler.normalizedCoords, w1, coord.x()… in isLinearMipmapLinearSampleResultValid()
992 …const Vec2 vBounds0 = computeNonNormalizedCoordBounds(sampler.normalizedCoords, h0, coord.y()… in isLinearMipmapLinearSampleResultValid()
993 …const Vec2 vBounds1 = computeNonNormalizedCoordBounds(sampler.normalizedCoords, h1, coord.y()… in isLinearMipmapLinearSampleResultValid()
1018 const int x0 = wrap(sampler.wrapS, i0 , w0); in isLinearMipmapLinearSampleResultValid()
1019 const int x1 = wrap(sampler.wrapS, i0+1, w0); in isLinearMipmapLinearSampleResultValid()
1020 const int y0 = wrap(sampler.wrapT, j0 , h0); in isLinearMipmapLinearSampleResultValid()
1021 const int y1 = wrap(sampler.wrapT, j0+1, h0); in isLinearMipmapLinearSampleResultValid()
1022 lookupQuad(quad0, level0, sampler, x0, x1, y0, y1, coordZ); in isLinearMipmapLinearSampleResultValid()
1043 const int x0 = wrap(sampler.wrapS, i1 , w1); in isLinearMipmapLinearSampleResultValid()
1044 const int x1 = wrap(sampler.wrapS, i1+1, w1); in isLinearMipmapLinearSampleResultValid()
1045 const int y0 = wrap(sampler.wrapT, j1 , h1); in isLinearMipmapLinearSampleResultValid()
1046 const int y1 = wrap(sampler.wrapT, j1+1, h1); in isLinearMipmapLinearSampleResultValid()
1047 lookupQuad(quad1, level1, sampler, x0, x1, y0, y1, coordZ); in isLinearMipmapLinearSampleResultValid()
1073 const Sampler& sampler, in isLinearMipmapLinearSampleResultValid() argument
1089 …const Vec2 uBounds0 = computeNonNormalizedCoordBounds(sampler.normalizedCoords, w0, coord.x()… in isLinearMipmapLinearSampleResultValid()
1090 …const Vec2 uBounds1 = computeNonNormalizedCoordBounds(sampler.normalizedCoords, w1, coord.x()… in isLinearMipmapLinearSampleResultValid()
1091 …const Vec2 vBounds0 = computeNonNormalizedCoordBounds(sampler.normalizedCoords, h0, coord.y()… in isLinearMipmapLinearSampleResultValid()
1092 …const Vec2 vBounds1 = computeNonNormalizedCoordBounds(sampler.normalizedCoords, h1, coord.y()… in isLinearMipmapLinearSampleResultValid()
1093 …const Vec2 wBounds0 = computeNonNormalizedCoordBounds(sampler.normalizedCoords, d0, coord.z()… in isLinearMipmapLinearSampleResultValid()
1094 …const Vec2 wBounds1 = computeNonNormalizedCoordBounds(sampler.normalizedCoords, d1, coord.z()… in isLinearMipmapLinearSampleResultValid()
1125 const int x0 = wrap(sampler.wrapS, i0 , w0); in isLinearMipmapLinearSampleResultValid()
1126 const int x1 = wrap(sampler.wrapS, i0+1, w0); in isLinearMipmapLinearSampleResultValid()
1127 const int y0 = wrap(sampler.wrapT, j0 , h0); in isLinearMipmapLinearSampleResultValid()
1128 const int y1 = wrap(sampler.wrapT, j0+1, h0); in isLinearMipmapLinearSampleResultValid()
1129 const int z0 = wrap(sampler.wrapR, k0 , d0); in isLinearMipmapLinearSampleResultValid()
1130 const int z1 = wrap(sampler.wrapR, k0+1, d0); in isLinearMipmapLinearSampleResultValid()
1131 lookupQuad(quad00, level0, sampler, x0, x1, y0, y1, z0); in isLinearMipmapLinearSampleResultValid()
1132 lookupQuad(quad01, level0, sampler, x0, x1, y0, y1, z1); in isLinearMipmapLinearSampleResultValid()
1157 const int x0 = wrap(sampler.wrapS, i1 , w1); in isLinearMipmapLinearSampleResultValid()
1158 const int x1 = wrap(sampler.wrapS, i1+1, w1); in isLinearMipmapLinearSampleResultValid()
1159 const int y0 = wrap(sampler.wrapT, j1 , h1); in isLinearMipmapLinearSampleResultValid()
1160 const int y1 = wrap(sampler.wrapT, j1+1, h1); in isLinearMipmapLinearSampleResultValid()
1161 const int z0 = wrap(sampler.wrapR, k1 , d1); in isLinearMipmapLinearSampleResultValid()
1162 const int z1 = wrap(sampler.wrapR, k1+1, d1); in isLinearMipmapLinearSampleResultValid()
1163 lookupQuad(quad10, level1, sampler, x0, x1, y0, y1, z0); in isLinearMipmapLinearSampleResultValid()
1164 lookupQuad(quad11, level1, sampler, x0, x1, y0, y1, z1); in isLinearMipmapLinearSampleResultValid()
1195 const Sampler& sampler, in isLevelSampleResultValid() argument
1203 return isLinearSampleResultValid(level, sampler, prec, coordX, coordY, result); in isLevelSampleResultValid()
1205 return isNearestSampleResultValid(level, sampler, prec, coordX, coordY, result); in isLevelSampleResultValid()
1209 const Sampler& sampler, in isLevelSampleResultValid() argument
1217 return isLinearSampleResultValid(level, sampler, prec, coord, coordZ, result); in isLevelSampleResultValid()
1219 return isNearestSampleResultValid(level, sampler, prec, coord, coordZ, result); in isLevelSampleResultValid()
1224 const Sampler& sampler, in isMipmapLinearSampleResultValid() argument
1233 …return isLinearMipmapLinearSampleResultValid(level0, level1, sampler, prec, coordX, coordY, fBound… in isMipmapLinearSampleResultValid()
1235 …return isNearestMipmapLinearSampleResultValid(level0, level1, sampler, prec, coordX, coordY, fBoun… in isMipmapLinearSampleResultValid()
1240 const Sampler& sampler, in isMipmapLinearSampleResultValid() argument
1249 …return isLinearMipmapLinearSampleResultValid(level0, level1, sampler, prec, coord, coordZ, fBounds… in isMipmapLinearSampleResultValid()
1251 …return isNearestMipmapLinearSampleResultValid(level0, level1, sampler, prec, coord, coordZ, fBound… in isMipmapLinearSampleResultValid()
1254 bool isLookupResultValid (const Texture2DView& texture, const Sampler& sampler, const LookupPrecisi… in isLookupResultValid() argument
1258 const bool canBeMagnified = minLod <= sampler.lodThreshold; in isLookupResultValid()
1259 const bool canBeMinified = maxLod > sampler.lodThreshold; in isLookupResultValid()
1261 DE_ASSERT(isSamplerSupported(sampler)); in isLookupResultValid()
1265 …if (isLevelSampleResultValid(texture.getLevel(0), sampler, sampler.magFilter, prec, coord, 0, resu… in isLookupResultValid()
1271 const bool isNearestMipmap = isNearestMipmapFilter(sampler.minFilter); in isLookupResultValid()
1272 const bool isLinearMipmap = isLinearMipmapFilter(sampler.minFilter); in isLookupResultValid()
1290 …ultValid(texture.getLevel(level), texture.getLevel(level+1), sampler, getLevelFilter(sampler.minFi… in isLookupResultValid()
1305 …if (isLevelSampleResultValid(texture.getLevel(level), sampler, getLevelFilter(sampler.minFilter), … in isLookupResultValid()
1311 …if (isLevelSampleResultValid(texture.getLevel(0), sampler, sampler.minFilter, prec, coord, 0, resu… in isLookupResultValid()
1319 bool isLookupResultValid (const Texture1DView& texture, const Sampler& sampler, const LookupPrecisi… in isLookupResultValid() argument
1323 const bool canBeMagnified = minLod <= sampler.lodThreshold; in isLookupResultValid()
1324 const bool canBeMinified = maxLod > sampler.lodThreshold; in isLookupResultValid()
1326 DE_ASSERT(isSamplerSupported(sampler)); in isLookupResultValid()
1330 …if (isLevelSampleResultValid(texture.getLevel(0), sampler, sampler.magFilter, prec, coord, 0, resu… in isLookupResultValid()
1336 const bool isNearestMipmap = isNearestMipmapFilter(sampler.minFilter); in isLookupResultValid()
1337 const bool isLinearMipmap = isLinearMipmapFilter(sampler.minFilter); in isLookupResultValid()
1355 …ultValid(texture.getLevel(level), texture.getLevel(level+1), sampler, getLevelFilter(sampler.minFi… in isLookupResultValid()
1370 …if (isLevelSampleResultValid(texture.getLevel(level), sampler, getLevelFilter(sampler.minFilter), … in isLookupResultValid()
1376 …if (isLevelSampleResultValid(texture.getLevel(0), sampler, sampler.minFilter, prec, coord, 0, resu… in isLookupResultValid()
1385 const Sampler& sampler, in isSeamlessLinearSampleResultValid() argument
1392 …const Vec2 uBounds = computeNonNormalizedCoordBounds(sampler.normalizedCoords, size, coords.… in isSeamlessLinearSampleResultValid()
1393 …const Vec2 vBounds = computeNonNormalizedCoordBounds(sampler.normalizedCoords, size, coords.… in isSeamlessLinearSampleResultValid()
1427 quad.p00 = lookup<float>(faces[c00.face], sampler, c00.s, c00.t, 0); in isSeamlessLinearSampleResultValid()
1428 quad.p10 = lookup<float>(faces[c10.face], sampler, c10.s, c10.t, 0); in isSeamlessLinearSampleResultValid()
1429 quad.p01 = lookup<float>(faces[c01.face], sampler, c01.s, c01.t, 0); in isSeamlessLinearSampleResultValid()
1430 quad.p11 = lookup<float>(faces[c11.face], sampler, c11.s, c11.t, 0); in isSeamlessLinearSampleResultValid()
1445 const Sampler& sampler, in isSeamplessLinearMipmapLinearSampleResultValid() argument
1457 …const Vec2 uBounds0 = computeNonNormalizedCoordBounds(sampler.normalizedCoords, size0, coords… in isSeamplessLinearMipmapLinearSampleResultValid()
1458 …const Vec2 uBounds1 = computeNonNormalizedCoordBounds(sampler.normalizedCoords, size1, coords… in isSeamplessLinearMipmapLinearSampleResultValid()
1459 …const Vec2 vBounds0 = computeNonNormalizedCoordBounds(sampler.normalizedCoords, size0, coords… in isSeamplessLinearMipmapLinearSampleResultValid()
1460 …const Vec2 vBounds1 = computeNonNormalizedCoordBounds(sampler.normalizedCoords, size1, coords… in isSeamplessLinearMipmapLinearSampleResultValid()
1495 quad0.p00 = lookup<float>(faces0[c00.face], sampler, c00.s, c00.t, 0); in isSeamplessLinearMipmapLinearSampleResultValid()
1496 quad0.p10 = lookup<float>(faces0[c10.face], sampler, c10.s, c10.t, 0); in isSeamplessLinearMipmapLinearSampleResultValid()
1497 quad0.p01 = lookup<float>(faces0[c01.face], sampler, c01.s, c01.t, 0); in isSeamplessLinearMipmapLinearSampleResultValid()
1498 quad0.p11 = lookup<float>(faces0[c11.face], sampler, c11.s, c11.t, 0); in isSeamplessLinearMipmapLinearSampleResultValid()
1527 quad1.p00 = lookup<float>(faces1[c00.face], sampler, c00.s, c00.t, 0); in isSeamplessLinearMipmapLinearSampleResultValid()
1528 quad1.p10 = lookup<float>(faces1[c10.face], sampler, c10.s, c10.t, 0); in isSeamplessLinearMipmapLinearSampleResultValid()
1529 quad1.p01 = lookup<float>(faces1[c01.face], sampler, c01.s, c01.t, 0); in isSeamplessLinearMipmapLinearSampleResultValid()
1530 quad1.p11 = lookup<float>(faces1[c11.face], sampler, c11.s, c11.t, 0); in isSeamplessLinearMipmapLinearSampleResultValid()
1555 const Sampler& sampler, in isCubeLevelSampleResultValid() argument
1563 if (sampler.seamlessCubeMap) in isCubeLevelSampleResultValid()
1564 return isSeamlessLinearSampleResultValid(level, sampler, prec, coords, result); in isCubeLevelSampleResultValid()
1566 …return isLinearSampleResultValid(level[coords.face], sampler, prec, Vec2(coords.s, coords.t), 0, r… in isCubeLevelSampleResultValid()
1569 …return isNearestSampleResultValid(level[coords.face], sampler, prec, Vec2(coords.s, coords.t), 0, … in isCubeLevelSampleResultValid()
1574 const Sampler& sampler, in isCubeMipmapLinearSampleResultValid() argument
1583 if (sampler.seamlessCubeMap) in isCubeMipmapLinearSampleResultValid()
1584 …return isSeamplessLinearMipmapLinearSampleResultValid(faces0, faces1, sampler, prec, coords, fBoun… in isCubeMipmapLinearSampleResultValid()
1586 …return isLinearMipmapLinearSampleResultValid(faces0[coords.face], faces1[coords.face], sampler, pr… in isCubeMipmapLinearSampleResultValid()
1589 …return isNearestMipmapLinearSampleResultValid(faces0[coords.face], faces1[coords.face], sampler, p… in isCubeMipmapLinearSampleResultValid()
1598 bool isLookupResultValid (const TextureCubeView& texture, const Sampler& sampler, const LookupPreci… in isLookupResultValid() argument
1603 DE_ASSERT(isSamplerSupported(sampler)); in isLookupResultValid()
1615 const bool canBeMagnified = minLod <= sampler.lodThreshold; in isLookupResultValid()
1616 const bool canBeMinified = maxLod > sampler.lodThreshold; in isLookupResultValid()
1623 if (isCubeLevelSampleResultValid(faces, sampler, sampler.magFilter, prec, faceCoords, result)) in isLookupResultValid()
1629 const bool isNearestMipmap = isNearestMipmapFilter(sampler.minFilter); in isLookupResultValid()
1630 const bool isLinearMipmap = isLinearMipmapFilter(sampler.minFilter); in isLookupResultValid()
1654 …if (isCubeMipmapLinearSampleResultValid(faces0, faces1, sampler, getLevelFilter(sampler.minFilter)… in isLookupResultValid()
1672 …if (isCubeLevelSampleResultValid(faces, sampler, getLevelFilter(sampler.minFilter), prec, faceCoor… in isLookupResultValid()
1681 if (isCubeLevelSampleResultValid(faces, sampler, sampler.minFilter, prec, faceCoords, result)) in isLookupResultValid()
1701 bool isLookupResultValid (const Texture1DArrayView& texture, const Sampler& sampler, const LookupPr… in isLookupResultValid() argument
1707 const bool canBeMagnified = minLod <= sampler.lodThreshold; in isLookupResultValid()
1708 const bool canBeMinified = maxLod > sampler.lodThreshold; in isLookupResultValid()
1710 DE_ASSERT(isSamplerSupported(sampler)); in isLookupResultValid()
1716 …if (isLevelSampleResultValid(texture.getLevel(0), sampler, sampler.magFilter, prec, coordX, layer,… in isLookupResultValid()
1722 const bool isNearestMipmap = isNearestMipmapFilter(sampler.minFilter); in isLookupResultValid()
1723 const bool isLinearMipmap = isLinearMipmapFilter(sampler.minFilter); in isLookupResultValid()
1741 …ultValid(texture.getLevel(level), texture.getLevel(level+1), sampler, getLevelFilter(sampler.minFi… in isLookupResultValid()
1756 …if (isLevelSampleResultValid(texture.getLevel(level), sampler, getLevelFilter(sampler.minFilter), … in isLookupResultValid()
1762 …if (isLevelSampleResultValid(texture.getLevel(0), sampler, sampler.minFilter, prec, coordX, layer,… in isLookupResultValid()
1771 bool isLookupResultValid (const Texture2DArrayView& texture, const Sampler& sampler, const LookupPr… in isLookupResultValid() argument
1777 const bool canBeMagnified = minLod <= sampler.lodThreshold; in isLookupResultValid()
1778 const bool canBeMinified = maxLod > sampler.lodThreshold; in isLookupResultValid()
1780 DE_ASSERT(isSamplerSupported(sampler)); in isLookupResultValid()
1786 …if (isLevelSampleResultValid(texture.getLevel(0), sampler, sampler.magFilter, prec, coordXY, layer… in isLookupResultValid()
1792 const bool isNearestMipmap = isNearestMipmapFilter(sampler.minFilter); in isLookupResultValid()
1793 const bool isLinearMipmap = isLinearMipmapFilter(sampler.minFilter); in isLookupResultValid()
1811 …ultValid(texture.getLevel(level), texture.getLevel(level+1), sampler, getLevelFilter(sampler.minFi… in isLookupResultValid()
1826 …if (isLevelSampleResultValid(texture.getLevel(level), sampler, getLevelFilter(sampler.minFilter), … in isLookupResultValid()
1832 …if (isLevelSampleResultValid(texture.getLevel(0), sampler, sampler.minFilter, prec, coordXY, layer… in isLookupResultValid()
1842 const Sampler& sampler, in isLevelSampleResultValid() argument
1849 return isLinearSampleResultValid(level, sampler, prec, coord, result); in isLevelSampleResultValid()
1851 return isNearestSampleResultValid(level, sampler, prec, coord, result); in isLevelSampleResultValid()
1856 const Sampler& sampler, in isMipmapLinearSampleResultValid() argument
1864 …return isLinearMipmapLinearSampleResultValid(level0, level1, sampler, prec, coord, fBounds, result… in isMipmapLinearSampleResultValid()
1866 …return isNearestMipmapLinearSampleResultValid(level0, level1, sampler, prec, coord, fBounds, resul… in isMipmapLinearSampleResultValid()
1869 bool isLookupResultValid (const Texture3DView& texture, const Sampler& sampler, const LookupPrecisi… in isLookupResultValid() argument
1873 const bool canBeMagnified = minLod <= sampler.lodThreshold; in isLookupResultValid()
1874 const bool canBeMinified = maxLod > sampler.lodThreshold; in isLookupResultValid()
1876 DE_ASSERT(isSamplerSupported(sampler)); in isLookupResultValid()
1880 …if (isLevelSampleResultValid(texture.getLevel(0), sampler, sampler.magFilter, prec, coord, result)) in isLookupResultValid()
1886 const bool isNearestMipmap = isNearestMipmapFilter(sampler.minFilter); in isLookupResultValid()
1887 const bool isLinearMipmap = isLinearMipmapFilter(sampler.minFilter); in isLookupResultValid()
1905 …ultValid(texture.getLevel(level), texture.getLevel(level+1), sampler, getLevelFilter(sampler.minFi… in isLookupResultValid()
1920 …if (isLevelSampleResultValid(texture.getLevel(level), sampler, getLevelFilter(sampler.minFilter), … in isLookupResultValid()
1926 …if (isLevelSampleResultValid(texture.getLevel(0), sampler, sampler.minFilter, prec, coord, result)) in isLookupResultValid()
1946 bool isLookupResultValid (const TextureCubeArrayView& texture, const Sampler& sampler, const Lookup… in isLookupResultValid() argument
1953 DE_ASSERT(isSamplerSupported(sampler)); in isLookupResultValid()
1967 const bool canBeMagnified = minLod <= sampler.lodThreshold; in isLookupResultValid()
1968 const bool canBeMinified = maxLod > sampler.lodThreshold; in isLookupResultValid()
1975 if (isCubeLevelSampleResultValid(faces, sampler, sampler.magFilter, prec, faceCoords, result)) in isLookupResultValid()
1981 const bool isNearestMipmap = isNearestMipmapFilter(sampler.minFilter); in isLookupResultValid()
1982 const bool isLinearMipmap = isLinearMipmapFilter(sampler.minFilter); in isLookupResultValid()
2006 …if (isCubeMipmapLinearSampleResultValid(faces0, faces1, sampler, getLevelFilter(sampler.minFilter)… in isLookupResultValid()
2024 …if (isCubeLevelSampleResultValid(faces, sampler, getLevelFilter(sampler.minFilter), prec, faceCoor… in isLookupResultValid()
2033 if (isCubeLevelSampleResultValid(faces, sampler, sampler.minFilter, prec, faceCoords, result)) in isLookupResultValid()
2147 const Sampler& sampler, in isLevel1DLookupResultValid() argument
2154 …ilterMode filterMode = scaleMode == TEX_LOOKUP_SCALE_MAGNIFY ? sampler.magFilter : sampler.minFilt… in isLevel1DLookupResultValid()
2155 return isLevelSampleResultValid(access, sampler, filterMode, prec, coordX, coordY, result); in isLevel1DLookupResultValid()
2159 const Sampler& sampler, in isLevel1DLookupResultValid() argument
2166 DE_ASSERT(sampler.minFilter == Sampler::NEAREST && sampler.magFilter == Sampler::NEAREST); in isLevel1DLookupResultValid()
2168 return isNearestSampleResultValid(access, sampler, prec, coordX, coordY, result); in isLevel1DLookupResultValid()
2172 const Sampler& sampler, in isLevel1DLookupResultValid() argument
2179 DE_ASSERT(sampler.minFilter == Sampler::NEAREST && sampler.magFilter == Sampler::NEAREST); in isLevel1DLookupResultValid()
2181 return isNearestSampleResultValid(access, sampler, prec, coordX, coordY, result); in isLevel1DLookupResultValid()
2185 const Sampler& sampler, in isLevel2DLookupResultValid() argument
2192 …ilterMode filterMode = scaleMode == TEX_LOOKUP_SCALE_MAGNIFY ? sampler.magFilter : sampler.minFilt… in isLevel2DLookupResultValid()
2193 return isLevelSampleResultValid(access, sampler, filterMode, prec, coord, coordZ, result); in isLevel2DLookupResultValid()
2197 const Sampler& sampler, in isLevel2DLookupResultValid() argument
2204 DE_ASSERT(sampler.minFilter == Sampler::NEAREST && sampler.magFilter == Sampler::NEAREST); in isLevel2DLookupResultValid()
2206 return isNearestSampleResultValid(access, sampler, prec, coord, coordZ, result); in isLevel2DLookupResultValid()
2210 const Sampler& sampler, in isLevel2DLookupResultValid() argument
2217 DE_ASSERT(sampler.minFilter == Sampler::NEAREST && sampler.magFilter == Sampler::NEAREST); in isLevel2DLookupResultValid()
2219 return isNearestSampleResultValid(access, sampler, prec, coord, coordZ, result); in isLevel2DLookupResultValid()
2223 const Sampler& sampler, in isLevel3DLookupResultValid() argument
2229 …ilterMode filterMode = scaleMode == TEX_LOOKUP_SCALE_MAGNIFY ? sampler.magFilter : sampler.minFilt… in isLevel3DLookupResultValid()
2230 return isLevelSampleResultValid(access, sampler, filterMode, prec, coord, result); in isLevel3DLookupResultValid()
2234 const Sampler& sampler, in isLevel3DLookupResultValid() argument
2240 DE_ASSERT(sampler.minFilter == Sampler::NEAREST && sampler.magFilter == Sampler::NEAREST); in isLevel3DLookupResultValid()
2242 return isNearestSampleResultValid(access, sampler, prec, coord, result); in isLevel3DLookupResultValid()
2246 const Sampler& sampler, in isLevel3DLookupResultValid() argument
2252 DE_ASSERT(sampler.minFilter == Sampler::NEAREST && sampler.magFilter == Sampler::NEAREST); in isLevel3DLookupResultValid()
2254 return isNearestSampleResultValid(access, sampler, prec, coord, result); in isLevel3DLookupResultValid()
2259 const Sampler& sampler, in isGatherOffsetsResultValid() argument
2267 …const Vec2 uBounds = computeNonNormalizedCoordBounds(sampler.normalizedCoords, level.getWidth(), … in isGatherOffsetsResultValid()
2268 …const Vec2 vBounds = computeNonNormalizedCoordBounds(sampler.normalizedCoords, level.getHeight(),… in isGatherOffsetsResultValid()
2287 const int x = wrap(sampler.wrapS, i+offsets[offNdx].x(), w); in isGatherOffsetsResultValid()
2288 const int y = wrap(sampler.wrapT, j+offsets[offNdx].y(), h); in isGatherOffsetsResultValid()
2289 color[offNdx] = lookup<ScalarType>(level, sampler, x, y, coordZ)[componentNdx]; in isGatherOffsetsResultValid()
2301 const Sampler& sampler, in isGatherOffsetsResultValid() argument
2308 …return isGatherOffsetsResultValid(texture.getLevel(0), sampler, prec, coord, 0, componentNdx, offs… in isGatherOffsetsResultValid()
2312 const Sampler& sampler, in isGatherOffsetsResultValid() argument
2319 …return isGatherOffsetsResultValid(texture.getLevel(0), sampler, prec, coord, 0, componentNdx, offs… in isGatherOffsetsResultValid()
2323 const Sampler& sampler, in isGatherOffsetsResultValid() argument
2330 …return isGatherOffsetsResultValid(texture.getLevel(0), sampler, prec, coord, 0, componentNdx, offs… in isGatherOffsetsResultValid()
2335 const Sampler& sampler, in is2DArrayGatherOffsetsResultValid() argument
2345 …if (isGatherOffsetsResultValid(texture.getLevel(0), sampler, prec, coord.swizzle(0,1), layer, comp… in is2DArrayGatherOffsetsResultValid()
2352 const Sampler& sampler, in isGatherOffsetsResultValid() argument
2359 …return is2DArrayGatherOffsetsResultValid(texture, sampler, prec, coord, componentNdx, offsets, res… in isGatherOffsetsResultValid()
2363 const Sampler& sampler, in isGatherOffsetsResultValid() argument
2370 …return is2DArrayGatherOffsetsResultValid(texture, sampler, prec, coord, componentNdx, offsets, res… in isGatherOffsetsResultValid()
2374 const Sampler& sampler, in isGatherOffsetsResultValid() argument
2381 …return is2DArrayGatherOffsetsResultValid(texture, sampler, prec, coord, componentNdx, offsets, res… in isGatherOffsetsResultValid()
2386 const Sampler& sampler, in isGatherResultValid() argument
2394 …const Vec2 uBounds = computeNonNormalizedCoordBounds(sampler.normalizedCoords, size, coords.s, pr… in isGatherResultValid()
2395 …const Vec2 vBounds = computeNonNormalizedCoordBounds(sampler.normalizedCoords, size, coords.t, pr… in isGatherResultValid()
2430 color[offNdx] = lookup<ScalarType>(faces[c.face], sampler, c.s, c.t, 0)[componentNdx]; in isGatherResultValid()
2443 const Sampler& sampler, in isCubeGatherResultValid() argument
2461 if (isGatherResultValid(texture, sampler, prec, faceCoords, componentNdx, result)) in isCubeGatherResultValid()
2469 const Sampler& sampler, in isGatherResultValid() argument
2475 return isCubeGatherResultValid(texture, sampler, prec, coord, componentNdx, result); in isGatherResultValid()
2479 const Sampler& sampler, in isGatherResultValid() argument
2485 return isCubeGatherResultValid(texture, sampler, prec, coord, componentNdx, result); in isGatherResultValid()
2489 const Sampler& sampler, in isGatherResultValid() argument
2495 return isCubeGatherResultValid(texture, sampler, prec, coord, componentNdx, result); in isGatherResultValid()