Home | History | Annotate | Download | only in functional

Lines Matching full:ivec4

58 using tcu::IVec4;
387 static inline IVec4 readIVec4 (const int* ptr, int numComponents)
390 return IVec4(ptr[0],
438 IVec4 c = readIVec4(vertices + (cellY*gridWidth + cellX+1)*numComponents, numComponents);
445 static const IVec4 s_swizzles[] =
447 IVec4(0,1,2,3),
448 IVec4(1,2,3,0),
449 IVec4(2,3,0,1),
450 IVec4(3,0,1,2),
451 IVec4(3,2,1,0),
452 IVec4(2,1,0,3),
453 IVec4(1,0,3,2),
454 IVec4(0,3,2,1)
460 const IVec4& swz = s_swizzles[swzNdx % DE_LENGTH_OF_ARRAY(s_swizzles)];
617 IVec4 minVal (range.x());
618 IVec4 maxVal (range.y());
623 const IVec4 fmtBits = tcu::getTextureFormatBitDepth(attachments[output.location+vecNdx].format);
624 const BVec4 isZero = lessThanEqual(fmtBits, IVec4(0));
625 const IVec4 fmtMinVal = (-(tcu::Vector<deInt64, 4>(1) << (fmtBits-1).cast<deInt64>())).asInt();
626 const IVec4 fmtMaxVal = ((tcu::Vector<deInt64, 4>(1) << (fmtBits-1).cast<deInt64>())-deInt64(1)).asInt();
634 const IVec4 rangeDiv = swizzleVec((IVec4(gridWidth, gridHeight, gridWidth, gridHeight)-1), curInVec);
635 const IVec4 step = ((maxVal.cast<deInt64>() - minVal.cast<deInt64>()) / (rangeDiv.cast<deInt64>())).asInt();
644 IVec4 c = minVal + step*swizzleVec(IVec4(x, y, ix, iy), curInVec);
662 const IVec4 fmtBits = tcu::getTextureFormatBitDepth(attachments[output.location+vecNdx].format);
670 const IVec4 rangeDiv = swizzleVec((IVec4(gridWidth, gridHeight, gridWidth, gridHeight)-1), curInVec);
682 UVec4 c = step*swizzleVec(IVec4(x, y, ix, iy).asUint(), curInVec);
857 const IVec4 bits = min(IVec4(8), tcu::getTextureFormatBitDepth(format));
858 const Vec4 baseThreshold = 1.0f / ((IVec4(1) << bits)-1).asFloat();