Lines Matching full:sampler
508 static tcu::Vector<ColorScalarType, 4> gatherOffsets (const tcu::Texture2DView& texture, const tcu::Sampler& sampler, const Vec2& coord, int componentNdx, const IVec2 (&offsets)[4])
510 return texture.gatherOffsets(sampler, coord.x(), coord.y(), componentNdx, offsets).cast<ColorScalarType>();
514 static tcu::Vector<ColorScalarType, 4> gatherOffsets (const tcu::Texture2DArrayView& texture, const tcu::Sampler& sampler, const Vec3& coord, int componentNdx, const IVec2 (&offsets)[4])
516 return texture.gatherOffsets(sampler, coord.x(), coord.y(), coord.z(), componentNdx, offsets).cast<ColorScalarType>();
520 static tcu::Vector<ColorScalarType, 4> gatherOffsets (const tcu::TextureCubeView& texture, const tcu::Sampler& sampler, const Vec3& coord, int componentNdx, const IVec2 (&offsets)[4])
524 return texture.gather(sampler, coord.x(), coord.y(), coord.z(), componentNdx).cast<ColorScalarType>();
527 Sampler& sampler, float refZ, const Vec2& coord, const IVec2 (&offsets)[4])
529 return texture.gatherOffsetsCompare(sampler, refZ, coord.x(), coord.y(), offsets);
532 static Vec4 gatherOffsetsCompare (const tcu::Texture2DArrayView& texture, const tcu::Sampler& sampler, float refZ, const Vec3& coord, const IVec2 (&offsets)[4])
534 return texture.gatherOffsetsCompare(sampler, refZ, coord.x(), coord.y(), coord.z(), offsets);
537 static Vec4 gatherOffsetsCompare (const tcu::TextureCubeView& texture, const tcu::Sampler& sampler, float refZ, const Vec3& coord, const IVec2 (&offsets)[4])
541 return texture.gatherCompare(sampler, refZ, coord.x(), coord.y(), coord.z());
546 const tcu::Sampler& sampler,
555 return tcu::isGatherResultValid(texture, sampler, prec, coord, componentNdx, result);
559 const tcu::Sampler& sampler,
568 return tcu::isGatherCompareResultValid(texture, sampler, prec, coord, cmpReference, result);
576 const tcu::Sampler& sampler,
601 const ColorVec idealPix = gatherOffsets<ColorScalarType>(texture, sampler, texCoord, componentNdx, offsets);
609 if (!isGatherOffsetsResultValid(texture, sampler, lookupPrec, texCoord, componentNdx, offsets, resultPix))
656 const tcu::Sampler& sampler,
680 const Vec4 idealPix = gatherOffsetsCompare(texture, sampler, refZ, texCoord, offsets);
686 if (!isGatherOffsetsCompareResultValid(texture, sampler, compPrec, texCoord, offsets, refZ, resultPix))
920 static inline bool isMipmapFilter (tcu::Sampler::FilterMode filter)
924 case tcu::Sampler::NEAREST:
925 case tcu::Sampler::LINEAR:
928 case tcu::Sampler::NEAREST_MIPMAP_NEAREST:
929 case tcu::Sampler::NEAREST_MIPMAP_LINEAR:
930 case tcu::Sampler::LINEAR_MIPMAP_NEAREST:
931 case tcu::Sampler::LINEAR_MIPMAP_LINEAR:
950 tcu::Sampler::CompareMode shadowCompareMode, //!< Should be COMPAREMODE_NONE iff textureFormat is a depth format.
951 tcu::Sampler::WrapMode wrapS,
952 tcu::Sampler::WrapMode wrapT,
956 tcu::Sampler::FilterMode minFilter,
957 tcu::Sampler::FilterMode magFilter,
984 const tcu::Sampler::CompareMode m_shadowCompareMode;
985 const tcu::Sampler::WrapMode m_wrapS;
986 const tcu::Sampler::WrapMode m_wrapT;
988 const tcu::Sampler::FilterMode m_minFilter;
989 const tcu::Sampler::FilterMode m_magFilter;
1026 tcu::Sampler
1027 tcu::Sampler::WrapMode wrapS,
1028 tcu::Sampler::WrapMode wrapT,
1030 tcu::Sampler::FilterMode minFilter,
1031 tcu::Sampler::FilterMode magFilter,
1052 DE_ASSERT((m_shadowCompareMode != tcu::Sampler::COMPAREMODE_NONE) == isDepthFormat(m_textureFormat));
1059 (m_magFilter == tcu::Sampler::NEAREST && (m_minFilter == tcu::Sampler::NEAREST || m_minFilter == tcu::Sampler::NEAREST_MIPMAP_NEAREST)));
1322 if (m_shadowCompareMode != tcu::Sampler::COMPAREMODE_NONE)
1489 tcu::Sampler sampler;
1490 sampler.wrapS = m_wrapS;
1491 sampler.wrapT = m_wrapT;
1492 sampler.compare = m_shadowCompareMode;
1502 return verifyGatherOffsetsCompare(log, rendered, texture, texCoords, sampler, comparePrec, PixelCompareRefZDefault(RENDER_SIZE), *pixelOffsets);
1515 return verifyGatherOffsets<float>(log, rendered, texture, texCoords, sampler, lookupPrec, componentNdx, *pixelOffsets);
1526 return verifyGatherOffsets<deUint32>(log, rendered, texture, texCoords, sampler, lookupPrec, componentNdx, *pixelOffsets);
1528 return verifyGatherOffsets<deInt32>(log, rendered, texture, texCoords, sampler, lookupPrec, componentNdx, *pixelOffsets);
1625 tcu::Sampler::CompareMode shadowCompareMode,
1626 tcu::Sampler::WrapMode wrapS,
1627 tcu::Sampler::WrapMode wrapT,
1629 tcu::Sampler::FilterMode minFilter,
1630 tcu::Sampler::FilterMode magFilter,
1715 tcu::Sampler::CompareMode shadowCompareMode,
1716 tcu::Sampler::WrapMode wrapS,
1717 tcu::Sampler::WrapMode wrapT,
1719 tcu::Sampler::FilterMode minFilter,
1720 tcu::Sampler::FilterMode magFilter,
1847 tcu::Sampler::CompareMode shadowCompareMode,
1848 tcu::Sampler::WrapMode wrapS,
1849 tcu::Sampler::WrapMode wrapT,
1851 tcu::Sampler::FilterMode minFilter,
1852 tcu::Sampler::FilterMode magFilter,
1987 tcu::Sampler::CompareMode shadowCompareMode,
1988 tcu::Sampler::WrapMode wrapS,
1989 tcu::Sampler::WrapMode wrapT,
1991 tcu::Sampler::FilterMode minFilter,
1992 tcu::Sampler::FilterMode magFilter,
2026 static inline const char* compareModeName (tcu::Sampler::CompareMode mode)
2030 case tcu::Sampler::COMPAREMODE_LESS: return "less";
2031 case tcu::Sampler::COMPAREMODE_LESS_OR_EQUAL: return "less_or_equal";
2032 case tcu::Sampler::COMPAREMODE_GREATER: return "greater";
2033 case tcu::Sampler::COMPAREMODE_GREATER_OR_EQUAL: return "greater_or_equal";
2034 case tcu::Sampler::COMPAREMODE_EQUAL: return "equal";
2035 case tcu::Sampler::COMPAREMODE_NOT_EQUAL: return "not_equal";
2036 case tcu::Sampler::COMPAREMODE_ALWAYS: return "always";
2037 case tcu::Sampler::COMPAREMODE_NEVER: return "never";
2080 tcu::Sampler::WrapMode mode;
2083 { "clamp_to_edge", tcu::Sampler::CLAMP_TO_EDGE },
2084 { "repeat", tcu::Sampler::REPEAT_GL },
2085 { "mirrored_repeat", tcu::Sampler::MIRRORED_REPEAT_GL }
2144 for (int compareModeI = 0; compareModeI < tcu::Sampler::COMPAREMODE_LAST; compareModeI++)
2146 const tcu::Sampler::CompareMode compareMode = (tcu::Sampler::CompareMode)compareModeI;
2148 if ((compareMode != tcu::Sampler::COMPAREMODE_NONE) != isDepthFormat(format))
2151 if (compareMode != tcu::Sampler::COMPAREMODE_NONE &&
2152 compareMode != tcu::Sampler::COMPAREMODE_LESS &&
2153 compareMode != tcu::Sampler::COMPAREMODE_GREATER)
2156 TestCaseGroup* const compareModeGroup = compareMode == tcu::Sampler::COMPAREMODE_NONE ?
2168 const tcu::Sampler::WrapMode wrapS = wrapModes[wrapSNdx].mode;
2169 const tcu::Sampler::WrapMode wrapT = wrapModes[wrapTNdx].mode;
2174 MaybeTextureSwizzle::createNoneTextureSwizzle(), tcu::Sampler::NEAREST, tcu::Sampler::NEAREST, 0, textureSize,
2201 tcu::Sampler::COMPAREMODE_NONE, tcu::Sampler::REPEAT_GL, tcu::Sampler::REPEAT_GL,
2202 swizzle, tcu::Sampler::NEAREST, tcu::Sampler::NEAREST, 0, IVec3(64, 64, 3)));
2213 tcu::Sampler::FilterMode filter;
2216 { "linear", tcu::Sampler::LINEAR },
2217 { "nearest", tcu::Sampler::NEAREST }
2223 tcu::Sampler::FilterMode filter;
2227 { "linear", tcu::Sampler::LINEAR },
2228 { "nearest_mipmap_nearest", tcu::Sampler::NEAREST_MIPMAP_NEAREST },
2229 { "nearest_mipmap_linear", tcu::Sampler::NEAREST_MIPMAP_LINEAR },
2230 { "linear_mipmap_nearest", tcu::Sampler::LINEAR_MIPMAP_NEAREST },
2231 { "linear_mipmap_linear", tcu::Sampler::LINEAR_MIPMAP_LINEAR },
2237 const tcu::Sampler::FilterMode minFilter = minFilters[minFilterNdx].filter;
2238 const tcu::Sampler::FilterMode magFilter = magFilters[magFilterNdx].filter;
2239 const tcu::Sampler::CompareMode compareMode = isDepthFormat(format) ? tcu::Sampler::COMPAREMODE_LESS : tcu::Sampler::COMPAREMODE_NONE;
2241 if ((isUnormFormatType(format.type) || isDepthFormat(format)) && magFilter == tcu::Sampler::NEAREST)
2244 (magFilter != tcu::Sampler::NEAREST || minFilter != tcu::Sampler::NEAREST_MIPMAP_NEAREST))
2250 tcu::Sampler::REPEAT_GL, tcu::Sampler::REPEAT_GL, MaybeTextureSwizzle::createNoneTextureSwizzle(),
2262 const tcu::Sampler::CompareMode compareMode = isDepthFormat(format) ? tcu::Sampler::COMPAREMODE_LESS : tcu::Sampler::COMPAREMODE_NONE;
2264 compareMode, tcu::Sampler::REPEAT_GL, tcu::Sampler::REPEAT_GL,
2265 MaybeTextureSwizzle::createNoneTextureSwizzle(), tcu::Sampler::NEAREST, tcu::Sampler::NEAREST,
2277 const tcu::Sampler::CompareMode compareMode = isDepthFormat(format) ? tcu::Sampler::COMPAREMODE_LESS : tcu::Sampler::COMPAREMODE_NONE;
2279 compareMode, tcu::Sampler::REPEAT_GL, tcu::Sampler::REPEAT_GL,
2280 MaybeTextureSwizzle::createNoneTextureSwizzle(), tcu::Sampler::NEAREST_MIPMAP_NEAREST, tcu::Sampler::NEAREST,