Lines Matching refs:As
140 c.x = MulHigh(As<UShort4>(c.x), UShort4(0x10000000 / 0xF800)); in sampleTexture()
141 c.y = MulHigh(As<UShort4>(c.y), UShort4(0x10000000 / 0xFC00)); in sampleTexture()
142 c.z = MulHigh(As<UShort4>(c.z), UShort4(0x10000000 / 0xF800)); in sampleTexture()
150 c[component] = As<UShort4>(c[component]) >> 4; in sampleTexture()
319 c.x = Float4(As<UShort4>(cs.x)) * Float4(1.0f / 0xF800); in sampleTexture()
320 c.y = Float4(As<UShort4>(cs.y)) * Float4(1.0f / 0xFC00); in sampleTexture()
321 c.z = Float4(As<UShort4>(cs.z)) * Float4(1.0f / 0xF800); in sampleTexture()
352 c.y = As<Float4>(UInt4(0)); in sampleTexture()
359 c.z = As<Float4>(UInt4(0)); in sampleTexture()
418 …Pointer<Byte> mipmap = texture + OFFSET(Texture, mipmap) + (As<Int>(Extract(lod, i)) + baseLevel) … in textureSize()
419 size.x = Insert(size.x, As<Float>(Int(*Pointer<Short>(mipmap + OFFSET(Mipmap, width)))), i); in textureSize()
420 size.y = Insert(size.y, As<Float>(Int(*Pointer<Short>(mipmap + OFFSET(Mipmap, height)))), i); in textureSize()
421 size.z = Insert(size.z, As<Float>(Int(*Pointer<Short>(mipmap + OFFSET(Mipmap, depth)))), i); in textureSize()
429 Int4 border = As<Int4>(CmpLT(Abs(coordinates - Float4(0.5f)), Float4(0.5f))); in border()
430 mask = As<Short4>(Int2(As<Int4>(PackSigned(border, border)))); in border()
435 mask = As<Int4>(CmpLT(Abs(coordinates - Float4(0.5f)), Float4(0.5f))); in border()
465 case -1: return SubSat(As<UShort4>(uvw), As<UShort4>(offset)); in offsetSample()
467 case +1: return AddSat(As<UShort4>(uvw), As<UShort4>(offset)); in offsetSample()
468 case 2: return AddSat(AddSat(As<UShort4>(uvw), As<UShort4>(offset)), As<UShort4>(offset)); in offsetSample()
493 …if(hasUnsignedTextureComponent(0)) cc.x = MulHigh(As<UShort4>(cc.x), utri); else cc.x = MulHigh(cc… in sampleFilter()
494 …if(hasUnsignedTextureComponent(1)) cc.y = MulHigh(As<UShort4>(cc.y), utri); else cc.y = MulHigh(cc… in sampleFilter()
495 …if(hasUnsignedTextureComponent(2)) cc.z = MulHigh(As<UShort4>(cc.z), utri); else cc.z = MulHigh(cc… in sampleFilter()
496 …if(hasUnsignedTextureComponent(3)) cc.w = MulHigh(As<UShort4>(cc.w), utri); else cc.w = MulHigh(cc… in sampleFilter()
501 …if(hasUnsignedTextureComponent(0)) c.x = MulHigh(As<UShort4>(c.x), utri); else c.x = MulHigh(c.x, … in sampleFilter()
502 …if(hasUnsignedTextureComponent(1)) c.y = MulHigh(As<UShort4>(c.y), utri); else c.y = MulHigh(c.y, … in sampleFilter()
503 …if(hasUnsignedTextureComponent(2)) c.z = MulHigh(As<UShort4>(c.z), utri); else c.z = MulHigh(c.z, … in sampleFilter()
504 …if(hasUnsignedTextureComponent(3)) c.w = MulHigh(As<UShort4>(c.w), utri); else c.w = MulHigh(c.w, … in sampleFilter()
618 …if(hasUnsignedTextureComponent(0)) cSum.x += As<Short4>(MulHigh(As<UShort4>(c.x), cw)); else cSum.… in sampleAniso()
619 …if(hasUnsignedTextureComponent(1)) cSum.y += As<Short4>(MulHigh(As<UShort4>(c.y), cw)); else cSum.… in sampleAniso()
620 …if(hasUnsignedTextureComponent(2)) cSum.z += As<Short4>(MulHigh(As<UShort4>(c.z), cw)); else cSum.… in sampleAniso()
621 …if(hasUnsignedTextureComponent(3)) cSum.w += As<Short4>(MulHigh(As<UShort4>(c.w), cw)); else cSum.… in sampleAniso()
662 Short4 uuuu = texelFetch ? Short4(As<Int4>(u)) : address(u, state.addressingModeU, mipmap); in sampleQuad2D()
663 Short4 vvvv = texelFetch ? Short4(As<Int4>(v)) : address(v, state.addressingModeV, mipmap); in sampleQuad2D()
664 Short4 wwww = texelFetch ? Short4(As<Int4>(w)) : address(w, state.addressingModeW, mipmap); in sampleQuad2D()
685 UShort4 f0u = As<UShort4>(uuuu0) * *Pointer<UShort4>(mipmap + OFFSET(Mipmap,width)); in sampleQuad2D()
686 UShort4 f0v = As<UShort4>(vvvv0) * *Pointer<UShort4>(mipmap + OFFSET(Mipmap,height)); in sampleQuad2D()
715 c0.x = As<UShort4>(c0.x) - MulHigh(As<UShort4>(c0.x), f0u) + MulHigh(As<UShort4>(c1.x), f0u); in sampleQuad2D()
716 c2.x = As<UShort4>(c2.x) - MulHigh(As<UShort4>(c2.x), f0u) + MulHigh(As<UShort4>(c3.x), f0u); in sampleQuad2D()
717 c.x = As<UShort4>(c0.x) - MulHigh(As<UShort4>(c0.x), f0v) + MulHigh(As<UShort4>(c2.x), f0v); in sampleQuad2D()
723 c0.x = MulHigh(As<UShort4>(c0.x), f1u1v); in sampleQuad2D()
724 c1.x = MulHigh(As<UShort4>(c1.x), f0u1v); in sampleQuad2D()
725 c2.x = MulHigh(As<UShort4>(c2.x), f1u0v); in sampleQuad2D()
726 c3.x = MulHigh(As<UShort4>(c3.x), f0u0v); in sampleQuad2D()
745 c0.y = As<UShort4>(c0.y) - MulHigh(As<UShort4>(c0.y), f0u) + MulHigh(As<UShort4>(c1.y), f0u); in sampleQuad2D()
746 c2.y = As<UShort4>(c2.y) - MulHigh(As<UShort4>(c2.y), f0u) + MulHigh(As<UShort4>(c3.y), f0u); in sampleQuad2D()
747 c.y = As<UShort4>(c0.y) - MulHigh(As<UShort4>(c0.y), f0v) + MulHigh(As<UShort4>(c2.y), f0v); in sampleQuad2D()
753 c0.y = MulHigh(As<UShort4>(c0.y), f1u1v); in sampleQuad2D()
754 c1.y = MulHigh(As<UShort4>(c1.y), f0u1v); in sampleQuad2D()
755 c2.y = MulHigh(As<UShort4>(c2.y), f1u0v); in sampleQuad2D()
756 c3.y = MulHigh(As<UShort4>(c3.y), f0u0v); in sampleQuad2D()
775 c0.z = As<UShort4>(c0.z) - MulHigh(As<UShort4>(c0.z), f0u) + MulHigh(As<UShort4>(c1.z), f0u); in sampleQuad2D()
776 c2.z = As<UShort4>(c2.z) - MulHigh(As<UShort4>(c2.z), f0u) + MulHigh(As<UShort4>(c3.z), f0u); in sampleQuad2D()
777 c.z = As<UShort4>(c0.z) - MulHigh(As<UShort4>(c0.z), f0v) + MulHigh(As<UShort4>(c2.z), f0v); in sampleQuad2D()
783 c0.z = MulHigh(As<UShort4>(c0.z), f1u1v); in sampleQuad2D()
784 c1.z = MulHigh(As<UShort4>(c1.z), f0u1v); in sampleQuad2D()
785 c2.z = MulHigh(As<UShort4>(c2.z), f1u0v); in sampleQuad2D()
786 c3.z = MulHigh(As<UShort4>(c3.z), f0u0v); in sampleQuad2D()
805 c0.w = As<UShort4>(c0.w) - MulHigh(As<UShort4>(c0.w), f0u) + MulHigh(As<UShort4>(c1.w), f0u); in sampleQuad2D()
806 c2.w = As<UShort4>(c2.w) - MulHigh(As<UShort4>(c2.w), f0u) + MulHigh(As<UShort4>(c3.w), f0u); in sampleQuad2D()
807 c.w = As<UShort4>(c0.w) - MulHigh(As<UShort4>(c0.w), f0v) + MulHigh(As<UShort4>(c2.w), f0v); in sampleQuad2D()
813 c0.w = MulHigh(As<UShort4>(c0.w), f1u1v); in sampleQuad2D()
814 c1.w = MulHigh(As<UShort4>(c1.w), f0u1v); in sampleQuad2D()
815 c2.w = MulHigh(As<UShort4>(c2.w), f1u0v); in sampleQuad2D()
816 c3.w = MulHigh(As<UShort4>(c3.w), f0u0v); in sampleQuad2D()
857 Short4 uuuu = texelFetch ? Short4(As<Int4>(u_)) : address(u_, state.addressingModeU, mipmap); in sample3D()
858 Short4 vvvv = texelFetch ? Short4(As<Int4>(v_)) : address(v_, state.addressingModeV, mipmap); in sample3D()
859 Short4 wwww = texelFetch ? Short4(As<Int4>(w_)) : address(w_, state.addressingModeW, mipmap); in sample3D()
887 UShort4 f0u = As<UShort4>(u[0][0][0]) * *Pointer<UShort4>(mipmap + OFFSET(Mipmap,width)); in sample3D()
888 UShort4 f0v = As<UShort4>(v[0][0][0]) * *Pointer<UShort4>(mipmap + OFFSET(Mipmap,height)); in sample3D()
889 UShort4 f0s = As<UShort4>(s[0][0][0]) * *Pointer<UShort4>(mipmap + OFFSET(Mipmap,depth)); in sample3D()
937 …if(componentCount >= 1) { if(hasUnsignedTextureComponent(0)) c[i][j][k].x = MulHigh(As<UShort4>(c[… in sample3D()
938 …if(componentCount >= 2) { if(hasUnsignedTextureComponent(1)) c[i][j][k].y = MulHigh(As<UShort4>(c[… in sample3D()
939 …if(componentCount >= 3) { if(hasUnsignedTextureComponent(2)) c[i][j][k].z = MulHigh(As<UShort4>(c[… in sample3D()
940 …if(componentCount >= 4) { if(hasUnsignedTextureComponent(3)) c[i][j][k].w = MulHigh(As<UShort4>(c[… in sample3D()
1039 …c.x = As<Float4>((borderMask & As<Int4>(c.x)) | (~borderMask & *Pointer<Int4>(texture + OFFSET(Tex… in sampleFloatFilter()
1040 …c.y = As<Float4>((borderMask & As<Int4>(c.y)) | (~borderMask & *Pointer<Int4>(texture + OFFSET(Tex… in sampleFloatFilter()
1041 …c.z = As<Float4>((borderMask & As<Int4>(c.z)) | (~borderMask & *Pointer<Int4>(texture + OFFSET(Tex… in sampleFloatFilter()
1042 …c.w = As<Float4>((borderMask & As<Int4>(c.w)) | (~borderMask & *Pointer<Int4>(texture + OFFSET(Tex… in sampleFloatFilter()
1275 …lod = Float(As<Int>(lod)) - Float(0x3F800000); // Interpret as integer and subtract the exponent… in log2sqrt()
1276 lod *= As<Float>(Int(0x33000000)); // Scale by 0.25 * 2^-23 (mantissa length). in log2sqrt()
1284 …lod = Float(As<Int>(lod)) - Float(0x3F800000); // Interpret as integer and subtract the exponent… in log2()
1285 lod *= As<Float>(Int(0x33800000)); // Scale by 0.5 * 2^-23 (mantissa length). in log2()
1325 Int4 mask = As<Int4>(CmpNLT(dUV2.x, dUV2.y)); in computeLod()
1326 uDelta = As<Float4>((As<Int4>(dudx) & mask) | ((As<Int4>(dudy) & ~mask))); in computeLod()
1327 vDelta = As<Float4>((As<Int4>(dvdx) & mask) | ((As<Int4>(dvdy) & ~mask))); in computeLod()
1349 lod = Float(As<Int>(lodBias)); in computeLod()
1415 lod = Float(As<Int>(lodBias)); in computeLodCube()
1474 lod = Float(As<Int>(lodBias)); in computeLod3D()
1527 U = As<Float4>((xMajor & (n ^ As<Int4>(-z))) | (~xMajor & ((zMajor & n) ^ As<Int4>(x)))); in cubeFace()
1530 V = As<Float4>((~yMajor & As<Int4>(-y)) | (yMajor & (n ^ As<Int4>(z)))); in cubeFace()
1539 Int4 tmp = Int4(As<UShort4>(uvw)); in applyOffset()
1540 tmp = tmp + As<Int4>(offset); in applyOffset()
1561 return As<Short4>(UShort4(tmp)); in applyOffset()
1571 uuuu = MulHigh(As<UShort4>(uuuu), *Pointer<UShort4>(mipmap + OFFSET(Mipmap, width))); in computeIndices()
1572 vvvv = MulHigh(As<UShort4>(vvvv), *Pointer<UShort4>(mipmap + OFFSET(Mipmap, height))); in computeIndices()
1584 uuuu = As<Short4>(UnpackLow(uuuu, vvvv)); in computeIndices()
1585 uuu2 = As<Short4>(UnpackHigh(uuu2, vvvv)); in computeIndices()
1586 uuuu = As<Short4>(MulAdd(uuuu, *Pointer<Short4>(mipmap + OFFSET(Mipmap,onePitchP)))); in computeIndices()
1587 uuu2 = As<Short4>(MulAdd(uuu2, *Pointer<Short4>(mipmap + OFFSET(Mipmap,onePitchP)))); in computeIndices()
1595 wwww = MulHigh(As<UShort4>(wwww), *Pointer<UShort4>(mipmap + OFFSET(Mipmap, depth))); in computeIndices()
1605 UInt4 uv(As<UInt2>(uuuu), As<UInt2>(uuu2)); in computeIndices()
1606 uv += As<UInt4>(Int4(As<UShort4>(wwww))) * *Pointer<UInt4>(mipmap + OFFSET(Mipmap, sliceP)); in computeIndices()
1608 index[0] = Extract(As<Int4>(uv), 0); in computeIndices()
1609 index[1] = Extract(As<Int4>(uv), 1); in computeIndices()
1610 index[2] = Extract(As<Int4>(uv), 2); in computeIndices()
1611 index[3] = Extract(As<Int4>(uv), 3); in computeIndices()
1615 index[0] = Extract(As<Int2>(uuuu), 0); in computeIndices()
1616 index[1] = Extract(As<Int2>(uuuu), 1); in computeIndices()
1617 index[2] = Extract(As<Int2>(uuu2), 0); in computeIndices()
1618 index[3] = Extract(As<Int2>(uuu2), 1); in computeIndices()
1644 indices += As<UInt4>(wwww); in computeIndices()
1649 index[i] = Extract(As<Int4>(indices), i); in computeIndices()
1696 c.z = As<Short4>(UnpackLow(c.x, c.y)); in sampleTexel()
1697 c.x = As<Short4>(UnpackHigh(c.x, c.y)); in sampleTexel()
1700 c.z = UnpackLow(As<Byte8>(c.z), As<Byte8>(c.z)); in sampleTexel()
1701 c.y = UnpackHigh(As<Byte8>(c.y), As<Byte8>(c.y)); in sampleTexel()
1702 c.x = UnpackLow(As<Byte8>(c.x), As<Byte8>(c.x)); in sampleTexel()
1703 c.w = UnpackHigh(As<Byte8>(c.w), As<Byte8>(c.w)); in sampleTexel()
1709 c.z = As<Short4>(UnpackHigh(c.x, c.y)); in sampleTexel()
1710 c.x = As<Short4>(UnpackLow(c.x, c.y)); in sampleTexel()
1713 c.x = UnpackLow(As<Byte8>(c.x), As<Byte8>(c.x)); in sampleTexel()
1714 c.y = UnpackHigh(As<Byte8>(c.y), As<Byte8>(c.y)); in sampleTexel()
1715 c.z = UnpackLow(As<Byte8>(c.z), As<Byte8>(c.z)); in sampleTexel()
1716 c.w = UnpackHigh(As<Byte8>(c.w), As<Byte8>(c.w)); in sampleTexel()
1727 c.z = As<Short4>(UnpackHigh(c.x, c.y)); in sampleTexel()
1728 c.x = As<Short4>(UnpackLow(c.x, c.y)); in sampleTexel()
1731 c.x = UnpackLow(As<Byte8>(c.x), As<Byte8>(Short4(0))); in sampleTexel()
1732 c.y = UnpackHigh(As<Byte8>(c.y), As<Byte8>(Short4(0))); in sampleTexel()
1733 c.z = UnpackLow(As<Byte8>(c.z), As<Byte8>(Short4(0))); in sampleTexel()
1734 c.w = UnpackHigh(As<Byte8>(c.w), As<Byte8>(Short4(0))); in sampleTexel()
1751 c.y = (c.x & Short4(0xFF00u)) | As<Short4>(As<UShort4>(c.x) >> 8); in sampleTexel()
1759 c.y = As<Short4>(As<UShort4>(c.x) >> 8); in sampleTexel()
1780 c.x = Unpack(As<Byte4>(c0), As<Byte4>(zero)); in sampleTexel()
1789 c.x = Unpack(As<Byte4>(c0)); in sampleTexel()
1818 c.x = As<Short4>(UnpackLow(c.x, *Pointer<Short4>(buffer[f1] + 4 * index[1]))); in sampleTexel()
1820 c.z = As<Short4>(UnpackLow(c.z, *Pointer<Short4>(buffer[f3] + 4 * index[3]))); in sampleTexel()
1822 c.x = UnpackLow(As<Int2>(c.x), As<Int2>(c.z)); in sampleTexel()
1823 c.y = UnpackHigh(As<Int2>(c.y), As<Int2>(c.z)); in sampleTexel()
1928 UShort4 Y = As<UShort4>(Unpack(As<Byte4>(c0))); in sampleTexel()
1936 UShort4 V = As<UShort4>(Unpack(As<Byte4>(c0))); in sampleTexel()
1943 UShort4 U = As<UShort4>(Unpack(As<Byte4>(c0))); in sampleTexel()
2048 c.x = As<Float4>(boolean & As<Int4>(Float4(1.0f))); in sampleTexel()
2068 c[n] = As<Float4>(Int4(As<UShort4>(cs[n]))); in sampleTexel()
2072 c[n] = Float4(As<UShort4>(cs[n])); in sampleTexel()
2079 c[n] = As<Float4>(Int4(cs[n])); in sampleTexel()
2185 convert = As<Int4>(PackSigned(convert, convert)); in address()
2187 return As<Short4>(Int2(convert)) + Short4(0x8000u); in address()
2207 …n == Offset) && (addressingMode != ADDRESSING_LAYER)) ? As<Int4>(uvw) + As<Int4>(texOffset) : As<I… in address()
2245 Float4 one = As<Float4>(Int4(oneBits)); in address()
2251 Float4 half = As<Float4>(Int4(halfBits)); in address()
2252 Float4 one = As<Float4>(Int4(oneBits)); in address()
2253 Float4 two = As<Float4>(Int4(twoBits)); in address()
2259 Float4 half = As<Float4>(Int4(halfBits)); in address()
2260 Float4 one = As<Float4>(Int4(oneBits)); in address()
2261 Float4 two = As<Float4>(Int4(twoBits)); in address()
2283 coord -= As<Float4>(As<Int4>(Float4(0.5f)) & filter); in address()
2297 xyz0 += As<Int4>(texOffset); in address()
2388 cf = Float4(As<UShort4>(cs)) * Float4(1.0f / 0xFFFF); in convertUnsigned16()
2393 c = As<UShort4>(c) >> 8; in sRGBtoLinear16_8_16()
2405 c = As<UShort4>(c) >> 10; in sRGBtoLinear16_6_16()
2417 c = As<UShort4>(c) >> 11; in sRGBtoLinear16_5_16()