Home | History | Annotate | Download | only in functional

Lines Matching refs:IVec4

58 using tcu::IVec4;
388 static inline IVec4 readIVec4 (const int* ptr, int numComponents)
391 return IVec4(ptr[0],
439 IVec4 c = readIVec4(vertices + (cellY*gridWidth + cellX+1)*numComponents, numComponents);
446 static const IVec4 s_swizzles[] =
448 IVec4(0,1,2,3),
449 IVec4(1,2,3,0),
450 IVec4(2,3,0,1),
451 IVec4(3,0,1,2),
452 IVec4(3,2,1,0),
453 IVec4(2,1,0,3),
454 IVec4(1,0,3,2),
455 IVec4(0,3,2,1)
461 const IVec4& swz = s_swizzles[swzNdx % DE_LENGTH_OF_ARRAY(s_swizzles)];
526 const IVec4 bitDepth = tcu::getTextureFormatBitDepth(access.getFormat());
527 const IVec4 srcPixel = access.getPixelInt(x, y);
528 IVec4 dstPixel (0, 0, 0, (0x1u << (deUint64)bitDepth.w()) - 1);
682 IVec4 minVal (range.x());
683 IVec4 maxVal (range.y());
688 const IVec4 fmtBits = tcu::getTextureFormatBitDepth(attachments[output.location+vecNdx].format);
689 const BVec4 isZero = lessThanEqual(fmtBits, IVec4(0));
690 const IVec4 fmtMinVal = (-(tcu::Vector<deInt64, 4>(1) << (fmtBits-1).cast<deInt64>())).asInt();
691 const IVec4 fmtMaxVal = ((tcu::Vector<deInt64, 4>(1) << (fmtBits-1).cast<deInt64>())-deInt64(1)).asInt();
699 const IVec4 rangeDiv = swizzleVec((IVec4(gridWidth, gridHeight, gridWidth, gridHeight)-1), curInVec);
700 const IVec4 step = ((maxVal.cast<deInt64>() - minVal.cast<deInt64>()) / (rangeDiv.cast<deInt64>())).asInt();
709 IVec4 c = minVal + step*swizzleVec(IVec4(x, y, ix, iy), curInVec);
727 const IVec4 fmtBits = tcu::getTextureFormatBitDepth(attachments[output.location+vecNdx].format);
735 const IVec4 rangeDiv = swizzleVec((IVec4(gridWidth, gridHeight, gridWidth, gridHeight)-1), curInVec);
747 UVec4 c = step*swizzleVec(IVec4(x, y, ix, iy).asUint(), curInVec);
931 const IVec4 bits = min(IVec4(8), tcu::getTextureFormatBitDepth(format));
932 const Vec4 baseThreshold = 1.0f / ((IVec4(1) << bits)-1).asFloat();