Lines Matching refs:IVec2
53 using tcu::IVec2;
150 static tcu::TextureLevel getPixels (const glu::RenderContext& renderCtx, const IVec2& size, const t… in getPixels()
439 virtual void operator() (const IVec2& pixCoord, IVec2 (&dst)[4]) const = 0;
446 MultiplePixelOffsets (const IVec2& a, in MultiplePixelOffsets()
447 const IVec2& b, in MultiplePixelOffsets()
448 const IVec2& c, in MultiplePixelOffsets()
449 const IVec2& d) in MultiplePixelOffsets()
457 void operator() (const IVec2& /* pixCoord */, IVec2 (&dst)[4]) const in operator ()() argument
464 IVec2 m_offsets[4];
470 SinglePixelOffsets (const IVec2& offset) in SinglePixelOffsets()
471 : MultiplePixelOffsets(offset + IVec2(0, 1), in SinglePixelOffsets()
472 offset + IVec2(1, 1), in SinglePixelOffsets()
473 offset + IVec2(1, 0), in SinglePixelOffsets()
474 offset + IVec2(0, 0)) in SinglePixelOffsets()
482 DynamicSinglePixelOffsets (const IVec2& offsetRange) : m_offsetRange(offsetRange) {} in DynamicSinglePixelOffsets()
484 void operator() (const IVec2& pixCoord, IVec2 (&dst)[4]) const in operator ()()
487 …SinglePixelOffsets(tcu::mod(pixCoord.swizzle(1,0), IVec2(offsetRangeSize)) + m_offsetRange.x())(IV… in operator ()()
491 IVec2 m_offsetRange;
514 static inline bool isZeroOffsetOffsets (const IVec2 (&offsets)[4]) in isZeroOffsetOffsets()
516 IVec2 ref[4]; in isZeroOffsetOffsets()
517 SinglePixelOffsets(IVec2(0))(IVec2(), ref); in isZeroOffsetOffsets()
525 …xture, const tcu::Sampler& sampler, const Vec2& coord, int componentNdx, const IVec2 (&offsets)[4]) in gatherOffsets()
531 …xture, const tcu::Sampler& sampler, const Vec3& coord, int componentNdx, const IVec2 (&offsets)[4]) in gatherOffsets()
537 …xture, const tcu::Sampler& sampler, const Vec3& coord, int componentNdx, const IVec2 (&offsets)[4]) in gatherOffsets()
544 …ew& texture, const tcu::Sampler& sampler, float refZ, const Vec2& coord, const IVec2 (&offsets)[4]) in gatherOffsetsCompare()
549 …ew& texture, const tcu::Sampler& sampler, float refZ, const Vec3& coord, const IVec2 (&offsets)[4]) in gatherOffsetsCompare()
554 …ew& texture, const tcu::Sampler& sampler, float refZ, const Vec3& coord, const IVec2 (&offsets)[4]) in gatherOffsetsCompare()
567 const IVec2 (&offsets)[4], in isGatherOffsetsResultValid()
579 const IVec2 (&offsets)[4], in isGatherOffsetsCompareResultValid()
612 IVec2 offsets[4]; in verifyGatherOffsets()
613 getPixelOffsets(IVec2(px, py), offsets); in verifyGatherOffsets()
651 virtual float operator() (const IVec2& pixCoord) const = 0;
657 PixelCompareRefZDefault (const IVec2& renderSize) : m_renderSize(renderSize) {} in PixelCompareRefZDefault()
659 float operator() (const IVec2& pixCoord) const in operator ()()
665 IVec2 m_renderSize;
690 IVec2 offsets[4]; in verifyGatherOffsetsCompare()
691 getPixelOffsets(IVec2(px, py), offsets); in verifyGatherOffsetsCompare()
695 const float refZ = getPixelRefZ(IVec2(px, py)); in verifyGatherOffsetsCompare()
809 …IVec2 offsets[4]; // \note Unless GATHERTYPE_OFFSETS is used, only offsets[0] is relevant; also, …
814 std::fill(DE_ARRAY_BEGIN(offsets), DE_ARRAY_END(offsets), IVec2()); in GatherArgs()
818 const IVec2& off0 = IVec2(), in GatherArgs()
819 const IVec2& off1 = IVec2(), in GatherArgs()
820 const IVec2& off2 = IVec2(), in GatherArgs()
821 const IVec2& off3 = IVec2()) in GatherArgs()
831 …PixelOffsetsFunctor (GatherType gatherType, const GatherArgs& gatherArgs, const IVec2& offsetRange) in makePixelOffsetsFunctor()
835 const IVec2 offset = gatherType == GATHERTYPE_BASIC ? IVec2(0) : gatherArgs.offsets[0]; in makePixelOffsetsFunctor()
983 IVec2 getOffsetRange (void) const;
1017 static const IVec2 RENDER_SIZE;
1021 …nst tcu::TextureFormat&, const GatherArgs&, const string& refZExpr, const IVec2& offsetRange, int …
1022 …e, const tcu::TextureFormat&, const GatherArgs&, const string& refZExpr, const IVec2& offsetRange);
1034 const IVec2 TextureGatherCase::RENDER_SIZE = IVec2(64, 64);
1082 IVec2 TextureGatherCase::getOffsetRange (void) const in getOffsetRange()
1087 return IVec2(0); in getOffsetRange()
1091 return IVec2(SPEC_MAX_MIN_OFFSET, in getOffsetRange()
1095 return IVec2(m_context.getContextInfo().getInt(GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET), in getOffsetRange()
1100 return IVec2(-1); in getOffsetRange()
1160 …extureFormat, const GatherArgs& gatherArgs, const string& refZExpr, const IVec2& offsetRange, int … in genGatherFuncCall()
1234 const IVec2& offsetRange) in genProgramSources()
1264 const IVec2 offsetRange = getOffsetRange(); in init()
1569 …erations (GatherType gatherType, const tcu::TextureFormat& textureFormat, const IVec2& offsetRange) in generateBasic2DCaseIterations()
1591 result.push_back(GatherArgs(componentNdx, IVec2(min, max))); in generateBasic2DCaseIterations()
1595 result.push_back(GatherArgs(componentNdx, IVec2(min, min))); in generateBasic2DCaseIterations()
1596 result.push_back(GatherArgs(componentNdx, IVec2(max, min))); in generateBasic2DCaseIterations()
1597 result.push_back(GatherArgs(componentNdx, IVec2(max, max))); in generateBasic2DCaseIterations()
1599 result.push_back(GatherArgs(componentNdx, IVec2(0, hmax))); in generateBasic2DCaseIterations()
1600 result.push_back(GatherArgs(componentNdx, IVec2(hmin, 0))); in generateBasic2DCaseIterations()
1601 result.push_back(GatherArgs(componentNdx, IVec2(0, 0))); in generateBasic2DCaseIterations()
1619 IVec2(min, min), in generateBasic2DCaseIterations()
1620 IVec2(min, max), in generateBasic2DCaseIterations()
1621 IVec2(max, min), in generateBasic2DCaseIterations()
1622 IVec2(max, max))); in generateBasic2DCaseIterations()
1626 IVec2(min, hmax), in generateBasic2DCaseIterations()
1627 IVec2(hmin, max), in generateBasic2DCaseIterations()
1628 IVec2(0, hmax), in generateBasic2DCaseIterations()
1629 IVec2(hmax, 0))); in generateBasic2DCaseIterations()
1658 const IVec2& textureSize) in TextureGather2DCase()
1674 const IVec2 m_textureSize;
1714 …<< TestLog::Message << "Note: texture level's size is " << IVec2(level.getWidth(), level.getHeight… in createAndUploadTexture()