• Home
  • Raw
  • Download

Lines Matching full:pointer

51 …void PixelRoutine::quad(Pointer<Byte> cBuffer[RENDERTARGETS], Pointer<Byte> &zBuffer, Pointer<Byte…  in quad()
76 Float4 xxxx = Float4(Float(x)) + *Pointer<Float4>(primitive + OFFSET(Primitive,xQuad), 16); in quad()
86 x -= *Pointer<Float4>(constants + OFFSET(Constants,X) + q * sizeof(float4)); in quad()
109 Float4 yyyy = Float4(Float(y)) + *Pointer<Float4>(primitive + OFFSET(Primitive,yQuad), 16); in quad()
121 XXXX += *Pointer<Float4>(constants + OFFSET(Constants,sampleX[q]) + 16 * cMask[q]); in quad()
122 YYYY += *Pointer<Float4>(constants + OFFSET(Constants,sampleY[q]) + 16 * cMask[q]); in quad()
123 WWWW += *Pointer<Float4>(constants + OFFSET(Constants,weight) + 16 * cMask[q]); in quad()
247 …occlusion += *Pointer<UInt>(constants + OFFSET(Constants,occlusionCount) + 4 * (zMask[q] & sMask[q… in quad()
255 AddAtomic(Pointer<Long>(&profiler.ropOperations), 4); in quad()
281 …Float4 PixelRoutine::interpolateCentroid(Float4 &x, Float4 &y, Float4 &rhw, Pointer<Byte> planeEqu… in interpolateCentroid()
283 Float4 interpolant = *Pointer<Float4>(planeEquation + OFFSET(PlaneEquation,C), 16); in interpolateCentroid()
287 interpolant += x * *Pointer<Float4>(planeEquation + OFFSET(PlaneEquation,A), 16) + in interpolateCentroid()
288 y * *Pointer<Float4>(planeEquation + OFFSET(PlaneEquation,B), 16); in interpolateCentroid()
299 void PixelRoutine::stencilTest(Pointer<Byte> &sBuffer, int q, Int &x, Int &sMask, Int &cMask) in stencilTest()
308 Pointer<Byte> buffer = sBuffer + 2 * x; in stencilTest()
312 buffer += q * *Pointer<Int>(data + OFFSET(DrawData,stencilSliceB)); in stencilTest()
315 Byte8 value = *Pointer<Byte8>(buffer); in stencilTest()
320 value &= *Pointer<Byte8>(data + OFFSET(DrawData,stencil[0].testMaskQ)); in stencilTest()
329 valueCCW &= *Pointer<Byte8>(data + OFFSET(DrawData,stencil[1].testMaskQ)); in stencilTest()
334 value &= *Pointer<Byte8>(primitive + OFFSET(Primitive,clockwiseMask)); in stencilTest()
335 valueCCW &= *Pointer<Byte8>(primitive + OFFSET(Primitive,invClockwiseMask)); in stencilTest()
356 …value = CmpGT(As<SByte8>(value), *Pointer<SByte8>(data + OFFSET(DrawData,stencil[CCW].referenceMas… in stencilTest()
359 value = CmpEQ(value, *Pointer<Byte8>(data + OFFSET(DrawData,stencil[CCW].referenceMaskedQ))); in stencilTest()
362 value = CmpEQ(value, *Pointer<Byte8>(data + OFFSET(DrawData,stencil[CCW].referenceMaskedQ))); in stencilTest()
367 equal = CmpEQ(equal, *Pointer<Byte8>(data + OFFSET(DrawData,stencil[CCW].referenceMaskedQ))); in stencilTest()
369 …value = CmpGT(As<SByte8>(value), *Pointer<SByte8>(data + OFFSET(DrawData,stencil[CCW].referenceMas… in stencilTest()
373 equal = *Pointer<Byte8>(data + OFFSET(DrawData,stencil[CCW].referenceMaskedSignedQ)); in stencilTest()
380 …value = CmpGT(As<SByte8>(value), *Pointer<SByte8>(data + OFFSET(DrawData,stencil[CCW].referenceMas… in stencilTest()
388 …Bool PixelRoutine::depthTest(Pointer<Byte> &zBuffer, int q, Int &x, Float4 &z, Int &sMask, Int &zM… in depthTest()
409 Pointer<Byte> buffer; in depthTest()
415 pitch = *Pointer<Int>(data + OFFSET(DrawData,depthPitchB)); in depthTest()
424 buffer += q * *Pointer<Int>(data + OFFSET(DrawData,depthSliceB)); in depthTest()
434 zValue.xy = *Pointer<Float4>(buffer); in depthTest()
435 zValue.zw = *Pointer<Float4>(buffer + pitch - 8); in depthTest()
439 zValue = *Pointer<Float4>(buffer, 16); in depthTest()
538 cmp = CmpEQ(alpha, *Pointer<Short4>(data + OFFSET(DrawData,factor.alphaReference4))); in alphaTest()
542 …cmp = CmpEQ(alpha, *Pointer<Short4>(data + OFFSET(DrawData,factor.alphaReference4))) ^ Short4(0xFF… in alphaTest()
546 cmp = CmpGT(*Pointer<Short4>(data + OFFSET(DrawData,factor.alphaReference4)), alpha); in alphaTest()
550 equal = CmpEQ(alpha, *Pointer<Short4>(data + OFFSET(DrawData,factor.alphaReference4))); in alphaTest()
551 cmp = CmpGT(alpha, *Pointer<Short4>(data + OFFSET(DrawData,factor.alphaReference4))); in alphaTest()
556 …cmp = CmpGT(alpha, *Pointer<Short4>(data + OFFSET(DrawData,factor.alphaReference4))) ^ Short4(0xFF… in alphaTest()
560 cmp = CmpGT(alpha, *Pointer<Short4>(data + OFFSET(DrawData,factor.alphaReference4))); in alphaTest()
570 Int4 coverage0 = CmpNLT(alpha, *Pointer<Float4>(data + OFFSET(DrawData,a2c0))); in alphaToCoverage()
571 Int4 coverage1 = CmpNLT(alpha, *Pointer<Float4>(data + OFFSET(DrawData,a2c1))); in alphaToCoverage()
572 Int4 coverage2 = CmpNLT(alpha, *Pointer<Float4>(data + OFFSET(DrawData,a2c2))); in alphaToCoverage()
573 Int4 coverage3 = CmpNLT(alpha, *Pointer<Float4>(data + OFFSET(DrawData,a2c3))); in alphaToCoverage()
601 c0.x -= *Pointer<Float4>(data + OFFSET(DrawData,fog.colorF[0])); in fogBlend()
602 c0.y -= *Pointer<Float4>(data + OFFSET(DrawData,fog.colorF[1])); in fogBlend()
603 c0.z -= *Pointer<Float4>(data + OFFSET(DrawData,fog.colorF[2])); in fogBlend()
609 c0.x += *Pointer<Float4>(data + OFFSET(DrawData,fog.colorF[0])); in fogBlend()
610 c0.y += *Pointer<Float4>(data + OFFSET(DrawData,fog.colorF[1])); in fogBlend()
611 c0.z += *Pointer<Float4>(data + OFFSET(DrawData,fog.colorF[2])); in fogBlend()
642 zw *= *Pointer<Float4>(data + OFFSET(DrawData,fog.scale)); in pixelFog()
643 zw += *Pointer<Float4>(data + OFFSET(DrawData,fog.offset)); in pixelFog()
646 zw *= *Pointer<Float4>(data + OFFSET(DrawData,fog.densityE)); in pixelFog()
651 zw *= *Pointer<Float4>(data + OFFSET(DrawData,fog.density2E)); in pixelFog()
659 void PixelRoutine::writeDepth(Pointer<Byte> &zBuffer, int q, Int &x, Float4 &z, Int &zMask) in writeDepth()
680 Pointer<Byte> buffer; in writeDepth()
686 pitch = *Pointer<Int>(data + OFFSET(DrawData,depthPitchB)); in writeDepth()
695 buffer += q * *Pointer<Int>(data + OFFSET(DrawData,depthSliceB)); in writeDepth()
705 zValue.xy = *Pointer<Float4>(buffer); in writeDepth()
706 zValue.zw = *Pointer<Float4>(buffer + pitch - 8); in writeDepth()
710 zValue = *Pointer<Float4>(buffer, 16); in writeDepth()
714 …Z = As<Float4>(As<Int4>(Z) & *Pointer<Int4>(constants + OFFSET(Constants,maskD4X) + zMask * 16, 16… in writeDepth()
715 …zValue = As<Float4>(As<Int4>(zValue) & *Pointer<Int4>(constants + OFFSET(Constants,invMaskD4X) + z… in writeDepth()
721 *Pointer<Float2>(buffer) = Float2(Z.xy); in writeDepth()
722 *Pointer<Float2>(buffer + pitch) = Float2(Z.zw); in writeDepth()
726 *Pointer<Float4>(buffer, 16) = Z; in writeDepth()
730 …void PixelRoutine::writeStencil(Pointer<Byte> &sBuffer, int q, Int &x, Int &sMask, Int &zMask, Int… in writeStencil()
750 Pointer<Byte> buffer = sBuffer + 2 * x; in writeStencil()
754 buffer += q * *Pointer<Int>(data + OFFSET(DrawData,stencilSliceB)); in writeStencil()
757 Byte8 bufferValue = *Pointer<Byte8>(buffer); in writeStencil()
765 newValue &= *Pointer<Byte8>(data + OFFSET(DrawData,stencil[0].writeMaskQ)); in writeStencil()
766 maskedValue &= *Pointer<Byte8>(data + OFFSET(DrawData,stencil[0].invWriteMaskQ)); in writeStencil()
779 newValueCCW &= *Pointer<Byte8>(data + OFFSET(DrawData,stencil[1].writeMaskQ)); in writeStencil()
780 maskedValue &= *Pointer<Byte8>(data + OFFSET(DrawData,stencil[1].invWriteMaskQ)); in writeStencil()
784 newValue &= *Pointer<Byte8>(primitive + OFFSET(Primitive,clockwiseMask)); in writeStencil()
785 newValueCCW &= *Pointer<Byte8>(primitive + OFFSET(Primitive,invClockwiseMask)); in writeStencil()
789 newValue &= *Pointer<Byte8>(constants + OFFSET(Constants,maskB4Q) + 8 * cMask); in writeStencil()
790 bufferValue &= *Pointer<Byte8>(constants + OFFSET(Constants,invMaskB4Q) + 8 * cMask); in writeStencil()
793 *Pointer<Byte4>(buffer) = Byte4(newValue); in writeStencil()
818 pass &= *Pointer<Byte8>(constants + OFFSET(Constants,maskB4Q) + 8 * zMask); in stencilOperation()
819 zFail &= *Pointer<Byte8>(constants + OFFSET(Constants,invMaskB4Q) + 8 * zMask); in stencilOperation()
823 pass &= *Pointer<Byte8>(constants + OFFSET(Constants,maskB4Q) + 8 * sMask); in stencilOperation()
824 fail &= *Pointer<Byte8>(constants + OFFSET(Constants,invMaskB4Q) + 8 * sMask); in stencilOperation()
840 output = *Pointer<Byte8>(data + OFFSET(DrawData,stencil[CCW].referenceQ)); in stencilOperation()
919 blendFactor.x = *Pointer<Short4>(data + OFFSET(DrawData,factor.blendConstant4W[0])); in blendFactor()
920 blendFactor.y = *Pointer<Short4>(data + OFFSET(DrawData,factor.blendConstant4W[1])); in blendFactor()
921 blendFactor.z = *Pointer<Short4>(data + OFFSET(DrawData,factor.blendConstant4W[2])); in blendFactor()
924 blendFactor.x = *Pointer<Short4>(data + OFFSET(DrawData,factor.invBlendConstant4W[0])); in blendFactor()
925 blendFactor.y = *Pointer<Short4>(data + OFFSET(DrawData,factor.invBlendConstant4W[1])); in blendFactor()
926 blendFactor.z = *Pointer<Short4>(data + OFFSET(DrawData,factor.invBlendConstant4W[2])); in blendFactor()
929 blendFactor.x = *Pointer<Short4>(data + OFFSET(DrawData,factor.blendConstant4W[3])); in blendFactor()
930 blendFactor.y = *Pointer<Short4>(data + OFFSET(DrawData,factor.blendConstant4W[3])); in blendFactor()
931 blendFactor.z = *Pointer<Short4>(data + OFFSET(DrawData,factor.blendConstant4W[3])); in blendFactor()
934 blendFactor.x = *Pointer<Short4>(data + OFFSET(DrawData,factor.invBlendConstant4W[3])); in blendFactor()
935 blendFactor.y = *Pointer<Short4>(data + OFFSET(DrawData,factor.invBlendConstant4W[3])); in blendFactor()
936 blendFactor.z = *Pointer<Short4>(data + OFFSET(DrawData,factor.invBlendConstant4W[3])); in blendFactor()
982 blendFactor.w = *Pointer<Short4>(data + OFFSET(DrawData,factor.blendConstant4W[3])); in blendFactorAlpha()
986 blendFactor.w = *Pointer<Short4>(data + OFFSET(DrawData,factor.invBlendConstant4W[3])); in blendFactorAlpha()
998 void PixelRoutine::readPixel(int index, Pointer<Byte> &cBuffer, Int &x, Vector4s &pixel) in readPixel()
1002 Pointer<Byte> buffer; in readPixel()
1003 Pointer<Byte> buffer2; in readPixel()
1009 buffer2 = buffer + *Pointer<Int>(data + OFFSET(DrawData, colorPitchB[index])); in readPixel()
1010 c01 = As<Short4>(Int2(*Pointer<Int>(buffer), *Pointer<Int>(buffer2))); in readPixel()
1019 c01 = *Pointer<Short4>(buffer); in readPixel()
1020 buffer += *Pointer<Int>(data + OFFSET(DrawData, colorPitchB[index])); in readPixel()
1021 c23 = *Pointer<Short4>(buffer); in readPixel()
1039 c01 = *Pointer<Short4>(buffer); in readPixel()
1040 buffer += *Pointer<Int>(data + OFFSET(DrawData, colorPitchB[index])); in readPixel()
1041 c23 = *Pointer<Short4>(buffer); in readPixel()
1058 pixel.w = Insert(pixel.w, *Pointer<Short>(buffer), 0); in readPixel()
1059 buffer += *Pointer<Int>(data + OFFSET(DrawData, colorPitchB[index])); in readPixel()
1060 pixel.w = Insert(pixel.w, *Pointer<Short>(buffer), 1); in readPixel()
1068 pixel.x = Insert(pixel.x, *Pointer<Short>(buffer), 0); in readPixel()
1069 buffer += *Pointer<Int>(data + OFFSET(DrawData, colorPitchB[index])); in readPixel()
1070 pixel.x = Insert(pixel.x, *Pointer<Short>(buffer), 1); in readPixel()
1078 c01 = *Pointer<Short4>(buffer); in readPixel()
1079 buffer += *Pointer<Int>(data + OFFSET(DrawData, colorPitchB[index])); in readPixel()
1080 c23 = *Pointer<Short4>(buffer); in readPixel()
1096 c01 = As<Short4>(Insert(As<Int2>(c01), *Pointer<Int>(buffer), 0)); in readPixel()
1097 buffer += *Pointer<Int>(data + OFFSET(DrawData, colorPitchB[index])); in readPixel()
1098 c01 = As<Short4>(Insert(As<Int2>(c01), *Pointer<Int>(buffer), 1)); in readPixel()
1107 c01 = *Pointer<Short4>(buffer); in readPixel()
1108 buffer += *Pointer<Int>(data + OFFSET(DrawData, colorPitchB[index])); in readPixel()
1109 c23 = *Pointer<Short4>(buffer); in readPixel()
1126 // pixel.z = UnpackLow(As<Byte8>(pixel.z), *Pointer<Byte8>(cBuffer + 8 * x + 0)); in readPixel()
1127 // pixel.x = UnpackHigh(As<Byte8>(pixel.x), *Pointer<Byte8>(cBuffer + 8 * x + 0)); in readPixel()
1128 // pixel.y = UnpackLow(As<Byte8>(pixel.y), *Pointer<Byte8>(cBuffer + 8 * x + 8)); in readPixel()
1129 // pixel.w = UnpackHigh(As<Byte8>(pixel.w), *Pointer<Byte8>(cBuffer + 8 * x + 8)); in readPixel()
1133 // pixel.z = UnpackLow(As<Byte8>(pixel.z), *Pointer<Byte8>(cBuffer + 8 * x + 0)); in readPixel()
1134 // pixel.x = UnpackHigh(As<Byte8>(pixel.x), *Pointer<Byte8>(cBuffer + 8 * x + 0)); in readPixel()
1135 // pixel.y = UnpackLow(As<Byte8>(pixel.y), *Pointer<Byte8>(cBuffer + 8 * x + 8)); in readPixel()
1140 pixel.x = *Pointer<Short4>(buffer + 8 * x); in readPixel()
1141 pixel.y = *Pointer<Short4>(buffer + 8 * x + 8); in readPixel()
1142 buffer += *Pointer<Int>(data + OFFSET(DrawData, colorPitchB[index])); in readPixel()
1143 pixel.z = *Pointer<Short4>(buffer + 8 * x); in readPixel()
1144 pixel.w = *Pointer<Short4>(buffer + 8 * x + 8); in readPixel()
1149 pixel.x = *Pointer<Short4>(buffer + 4 * x); in readPixel()
1150 buffer += *Pointer<Int>(data + OFFSET(DrawData, colorPitchB[index])); in readPixel()
1151 pixel.y = *Pointer<Short4>(buffer + 4 * x); in readPixel()
1171 void PixelRoutine::alphaBlend(int index, Pointer<Byte> &cBuffer, Vector4s &current, Int &x) in alphaBlend()
1290 void PixelRoutine::logicOperation(int index, Pointer<Byte> &cBuffer, Vector4s &current, Int &x) in logicOperation()
1385 …void PixelRoutine::writeColor(int index, Pointer<Byte> &cBuffer, Int &x, Vector4s &current, Int &s… in writeColor()
1579 Pointer<Byte> buffer = cBuffer + 2 * x; in writeColor()
1580 Int value = *Pointer<Int>(buffer); in writeColor()
1587 c01 &= *Pointer<Int>(constants + OFFSET(Constants,mask565Q[bgraWriteMask & 0x7][0])); in writeColor()
1588 masked &= *Pointer<Int>(constants + OFFSET(Constants,mask565Q[~bgraWriteMask & 0x7][0])); in writeColor()
1592 c01 &= *Pointer<Int>(constants + OFFSET(Constants,maskW4Q[0][0]) + xMask * 8); in writeColor()
1593 value &= *Pointer<Int>(constants + OFFSET(Constants,invMaskW4Q[0][0]) + xMask * 8); in writeColor()
1595 *Pointer<Int>(buffer) = c01; in writeColor()
1597 buffer += *Pointer<Int>(data + OFFSET(DrawData,colorPitchB[index])); in writeColor()
1598 value = *Pointer<Int>(buffer); in writeColor()
1605 c23 &= *Pointer<Int>(constants + OFFSET(Constants,mask565Q[bgraWriteMask & 0x7][0])); in writeColor()
1606 masked &= *Pointer<Int>(constants + OFFSET(Constants,mask565Q[~bgraWriteMask & 0x7][0])); in writeColor()
1610 c23 &= *Pointer<Int>(constants + OFFSET(Constants,maskW4Q[0][2]) + xMask * 8); in writeColor()
1611 value &= *Pointer<Int>(constants + OFFSET(Constants,invMaskW4Q[0][2]) + xMask * 8); in writeColor()
1613 *Pointer<Int>(buffer) = c23; in writeColor()
1619 // value = *Pointer<Short4>(cBuffer + 8 * x + 0); in writeColor()
1626 // c01 &= *Pointer<Short4>(constants + OFFSET(Constants,maskB4Q[bgraWriteMask][0])); in writeColor()
1627 // masked &= *Pointer<Short4>(constants + OFFSET(Constants,invMaskB4Q[bgraWriteMask][0])); in writeColor()
1631 // c01 &= *Pointer<Short4>(constants + OFFSET(Constants,maskD01Q) + xMask * 8); in writeColor()
1632 // value &= *Pointer<Short4>(constants + OFFSET(Constants,invMaskD01Q) + xMask * 8); in writeColor()
1634 // *Pointer<Short4>(cBuffer + 8 * x + 0) = c01; in writeColor()
1636 // value = *Pointer<Short4>(cBuffer + 8 * x + 8); in writeColor()
1643 // c23 &= *Pointer<Short4>(constants + OFFSET(Constants,maskB4Q[bgraWriteMask][0])); in writeColor()
1644 // masked &= *Pointer<Short4>(constants + OFFSET(Constants,invMaskB4Q[bgraWriteMask][0])); in writeColor()
1648 // c23 &= *Pointer<Short4>(constants + OFFSET(Constants,maskD23Q) + xMask * 8); in writeColor()
1649 // value &= *Pointer<Short4>(constants + OFFSET(Constants,invMaskD23Q) + xMask * 8); in writeColor()
1651 // *Pointer<Short4>(cBuffer + 8 * x + 8) = c23; in writeColor()
1656 Pointer<Byte> buffer = cBuffer + x * 4; in writeColor()
1657 Short4 value = *Pointer<Short4>(buffer); in writeColor()
1664 c01 &= *Pointer<Short4>(constants + OFFSET(Constants,maskB4Q[bgraWriteMask][0])); in writeColor()
1665 masked &= *Pointer<Short4>(constants + OFFSET(Constants,invMaskB4Q[bgraWriteMask][0])); in writeColor()
1669 c01 &= *Pointer<Short4>(constants + OFFSET(Constants,maskD01Q) + xMask * 8); in writeColor()
1670 value &= *Pointer<Short4>(constants + OFFSET(Constants,invMaskD01Q) + xMask * 8); in writeColor()
1672 *Pointer<Short4>(buffer) = c01; in writeColor()
1674 buffer += *Pointer<Int>(data + OFFSET(DrawData,colorPitchB[index])); in writeColor()
1675 value = *Pointer<Short4>(buffer); in writeColor()
1682 c23 &= *Pointer<Short4>(constants + OFFSET(Constants,maskB4Q[bgraWriteMask][0])); in writeColor()
1683 masked &= *Pointer<Short4>(constants + OFFSET(Constants,invMaskB4Q[bgraWriteMask][0])); in writeColor()
1687 c23 &= *Pointer<Short4>(constants + OFFSET(Constants,maskD23Q) + xMask * 8); in writeColor()
1688 value &= *Pointer<Short4>(constants + OFFSET(Constants,invMaskD23Q) + xMask * 8); in writeColor()
1690 *Pointer<Short4>(buffer) = c23; in writeColor()
1698 Pointer<Byte> buffer = cBuffer + x * 4; in writeColor()
1699 Short4 value = *Pointer<Short4>(buffer); in writeColor()
1708 c01 &= *Pointer<Short4>(constants + OFFSET(Constants,maskB4Q[rgbaWriteMask][0])); in writeColor()
1709 masked &= *Pointer<Short4>(constants + OFFSET(Constants,invMaskB4Q[rgbaWriteMask][0])); in writeColor()
1713 c01 &= *Pointer<Short4>(constants + OFFSET(Constants,maskD01Q) + xMask * 8); in writeColor()
1714 value &= *Pointer<Short4>(constants + OFFSET(Constants,invMaskD01Q) + xMask * 8); in writeColor()
1716 *Pointer<Short4>(buffer) = c01; in writeColor()
1718 buffer += *Pointer<Int>(data + OFFSET(DrawData,colorPitchB[index])); in writeColor()
1719 value = *Pointer<Short4>(buffer); in writeColor()
1724 c23 &= *Pointer<Short4>(constants + OFFSET(Constants,maskB4Q[rgbaWriteMask][0])); in writeColor()
1725 masked &= *Pointer<Short4>(constants + OFFSET(Constants,invMaskB4Q[rgbaWriteMask][0])); in writeColor()
1729 c23 &= *Pointer<Short4>(constants + OFFSET(Constants,maskD23Q) + xMask * 8); in writeColor()
1730 value &= *Pointer<Short4>(constants + OFFSET(Constants,invMaskD23Q) + xMask * 8); in writeColor()
1732 *Pointer<Short4>(buffer) = c23; in writeColor()
1738 Pointer<Byte> buffer = cBuffer + 2 * x; in writeColor()
1740 value = Insert(value, *Pointer<Int>(buffer), 0); in writeColor()
1741 Int pitch = *Pointer<Int>(data + OFFSET(DrawData, colorPitchB[index])); in writeColor()
1742 value = Insert(value, *Pointer<Int>(buffer + pitch), 1); in writeColor()
1746 UInt2 mergedMask = *Pointer<UInt2>(constants + OFFSET(Constants, maskW4Q) + xMask * 8); in writeColor()
1749 … Int tmpMask = *Pointer<Int>(constants + OFFSET(Constants, maskB4Q[5 * (rgbaWriteMask & 0x3)][0])); in writeColor()
1756 *Pointer<UInt>(buffer) = As<UInt>(Extract(packedCol, 0)); in writeColor()
1757 *Pointer<UInt>(buffer + pitch) = As<UInt>(Extract(packedCol, 1)); in writeColor()
1763 Pointer<Byte> buffer = cBuffer + 1 * x; in writeColor()
1765 value = Insert(value, *Pointer<Short>(buffer), 0); in writeColor()
1766 Int pitch = *Pointer<Int>(data + OFFSET(DrawData, colorPitchB[index])); in writeColor()
1767 value = Insert(value, *Pointer<Short>(buffer + pitch), 1); in writeColor()
1769 current.x &= *Pointer<Short4>(constants + OFFSET(Constants, maskB4Q) + 8 * xMask); in writeColor()
1770 value &= *Pointer<Short4>(constants + OFFSET(Constants, invMaskB4Q) + 8 * xMask); in writeColor()
1773 *Pointer<Short>(buffer) = Extract(current.x, 0); in writeColor()
1774 *Pointer<Short>(buffer + pitch) = Extract(current.x, 1); in writeColor()
1780 Pointer<Byte> buffer = cBuffer + 1 * x; in writeColor()
1782 value = Insert(value, *Pointer<Short>(buffer), 0); in writeColor()
1783 Int pitch = *Pointer<Int>(data + OFFSET(DrawData,colorPitchB[index])); in writeColor()
1784 value = Insert(value, *Pointer<Short>(buffer + pitch), 1); in writeColor()
1786 current.w &= *Pointer<Short4>(constants + OFFSET(Constants,maskB4Q) + 8 * xMask); in writeColor()
1787 value &= *Pointer<Short4>(constants + OFFSET(Constants,invMaskB4Q) + 8 * xMask); in writeColor()
1790 *Pointer<Short>(buffer) = Extract(current.w, 0); in writeColor()
1791 *Pointer<Short>(buffer + pitch) = Extract(current.w, 1); in writeColor()
1796 Pointer<Byte> buffer = cBuffer + 4 * x; in writeColor()
1798 Short4 value = *Pointer<Short4>(buffer); in writeColor()
1803 current.x &= *Pointer<Short4>(constants + OFFSET(Constants,maskW01Q[rgbaWriteMask & 0x3][0])); in writeColor()
1804 masked &= *Pointer<Short4>(constants + OFFSET(Constants,maskW01Q[~rgbaWriteMask & 0x3][0])); in writeColor()
1808 current.x &= *Pointer<Short4>(constants + OFFSET(Constants,maskD01Q) + xMask * 8); in writeColor()
1809 value &= *Pointer<Short4>(constants + OFFSET(Constants,invMaskD01Q) + xMask * 8); in writeColor()
1811 *Pointer<Short4>(buffer) = current.x; in writeColor()
1813 buffer += *Pointer<Int>(data + OFFSET(DrawData,colorPitchB[index])); in writeColor()
1815 value = *Pointer<Short4>(buffer); in writeColor()
1820 current.y &= *Pointer<Short4>(constants + OFFSET(Constants,maskW01Q[rgbaWriteMask & 0x3][0])); in writeColor()
1821 masked &= *Pointer<Short4>(constants + OFFSET(Constants,maskW01Q[~rgbaWriteMask & 0x3][0])); in writeColor()
1825 current.y &= *Pointer<Short4>(constants + OFFSET(Constants,maskD23Q) + xMask * 8); in writeColor()
1826 value &= *Pointer<Short4>(constants + OFFSET(Constants,invMaskD23Q) + xMask * 8); in writeColor()
1828 *Pointer<Short4>(buffer) = current.y; in writeColor()
1833 Pointer<Byte> buffer = cBuffer + 8 * x; in writeColor()
1836 Short4 value = *Pointer<Short4>(buffer); in writeColor()
1841 current.x &= *Pointer<Short4>(constants + OFFSET(Constants,maskW4Q[rgbaWriteMask][0])); in writeColor()
1842 masked &= *Pointer<Short4>(constants + OFFSET(Constants,invMaskW4Q[rgbaWriteMask][0])); in writeColor()
1846 current.x &= *Pointer<Short4>(constants + OFFSET(Constants,maskQ0Q) + xMask * 8); in writeColor()
1847 value &= *Pointer<Short4>(constants + OFFSET(Constants,invMaskQ0Q) + xMask * 8); in writeColor()
1849 *Pointer<Short4>(buffer) = current.x; in writeColor()
1853 Short4 value = *Pointer<Short4>(buffer + 8); in writeColor()
1858 current.y &= *Pointer<Short4>(constants + OFFSET(Constants,maskW4Q[rgbaWriteMask][0])); in writeColor()
1859 masked &= *Pointer<Short4>(constants + OFFSET(Constants,invMaskW4Q[rgbaWriteMask][0])); in writeColor()
1863 current.y &= *Pointer<Short4>(constants + OFFSET(Constants,maskQ1Q) + xMask * 8); in writeColor()
1864 value &= *Pointer<Short4>(constants + OFFSET(Constants,invMaskQ1Q) + xMask * 8); in writeColor()
1866 *Pointer<Short4>(buffer + 8) = current.y; in writeColor()
1869 buffer += *Pointer<Int>(data + OFFSET(DrawData,colorPitchB[index])); in writeColor()
1872 Short4 value = *Pointer<Short4>(buffer); in writeColor()
1877 current.z &= *Pointer<Short4>(constants + OFFSET(Constants,maskW4Q[rgbaWriteMask][0])); in writeColor()
1878 masked &= *Pointer<Short4>(constants + OFFSET(Constants,invMaskW4Q[rgbaWriteMask][0])); in writeColor()
1882 current.z &= *Pointer<Short4>(constants + OFFSET(Constants,maskQ2Q) + xMask * 8); in writeColor()
1883 value &= *Pointer<Short4>(constants + OFFSET(Constants,invMaskQ2Q) + xMask * 8); in writeColor()
1885 *Pointer<Short4>(buffer) = current.z; in writeColor()
1889 Short4 value = *Pointer<Short4>(buffer + 8); in writeColor()
1894 current.w &= *Pointer<Short4>(constants + OFFSET(Constants,maskW4Q[rgbaWriteMask][0])); in writeColor()
1895 masked &= *Pointer<Short4>(constants + OFFSET(Constants,invMaskW4Q[rgbaWriteMask][0])); in writeColor()
1899 current.w &= *Pointer<Short4>(constants + OFFSET(Constants,maskQ3Q) + xMask * 8); in writeColor()
1900 value &= *Pointer<Short4>(constants + OFFSET(Constants,invMaskQ3Q) + xMask * 8); in writeColor()
1902 *Pointer<Short4>(buffer + 8) = current.w; in writeColor()
1968 blendFactor.x = *Pointer<Float4>(data + OFFSET(DrawData,factor.blendConstant4F[0])); in blendFactor()
1969 blendFactor.y = *Pointer<Float4>(data + OFFSET(DrawData,factor.blendConstant4F[1])); in blendFactor()
1970 blendFactor.z = *Pointer<Float4>(data + OFFSET(DrawData,factor.blendConstant4F[2])); in blendFactor()
1973 blendFactor.x = *Pointer<Float4>(data + OFFSET(DrawData,factor.invBlendConstant4F[0])); in blendFactor()
1974 blendFactor.y = *Pointer<Float4>(data + OFFSET(DrawData,factor.invBlendConstant4F[1])); in blendFactor()
1975 blendFactor.z = *Pointer<Float4>(data + OFFSET(DrawData,factor.invBlendConstant4F[2])); in blendFactor()
2020 blendFactor.w = *Pointer<Float4>(data + OFFSET(DrawData,factor.blendConstant4F[3])); in blendFactorAlpha()
2023 blendFactor.w = *Pointer<Float4>(data + OFFSET(DrawData,factor.invBlendConstant4F[3])); in blendFactorAlpha()
2030 void PixelRoutine::alphaBlend(int index, Pointer<Byte> &cBuffer, Vector4f &oC, Int &x) in alphaBlend()
2037 Pointer<Byte> buffer; in alphaBlend()
2061 pixel.x.x = *Pointer<Float>(buffer + 4 * x + 0); in alphaBlend()
2062 pixel.x.y = *Pointer<Float>(buffer + 4 * x + 4); in alphaBlend()
2063 buffer += *Pointer<Int>(data + OFFSET(DrawData,colorPitchB[index])); in alphaBlend()
2065 pixel.x.z = *Pointer<Float>(buffer + 4 * x + 0); in alphaBlend()
2066 pixel.x.w = *Pointer<Float>(buffer + 4 * x + 4); in alphaBlend()
2073 pixel.x = *Pointer<Float4>(buffer + 8 * x, 16); in alphaBlend()
2074 buffer += *Pointer<Int>(data + OFFSET(DrawData,colorPitchB[index])); in alphaBlend()
2075 pixel.y = *Pointer<Float4>(buffer + 8 * x, 16); in alphaBlend()
2088 pixel.x = *Pointer<Float4>(buffer + 16 * x, 16); in alphaBlend()
2089 pixel.y = *Pointer<Float4>(buffer + 16 * x + 16, 16); in alphaBlend()
2090 buffer += *Pointer<Int>(data + OFFSET(DrawData,colorPitchB[index])); in alphaBlend()
2091 pixel.z = *Pointer<Float4>(buffer + 16 * x, 16); in alphaBlend()
2092 pixel.w = *Pointer<Float4>(buffer + 16 * x + 16, 16); in alphaBlend()
2221 …void PixelRoutine::writeColor(int index, Pointer<Byte> &cBuffer, Int &x, Vector4f &oC, Int &sMask,… in writeColor()
2278 Pointer<Byte> buffer; in writeColor()
2291 value.x = *Pointer<Float>(buffer + 0); in writeColor()
2292 value.y = *Pointer<Float>(buffer + 4); in writeColor()
2294 buffer += *Pointer<Int>(data + OFFSET(DrawData,colorPitchB[index])); in writeColor()
2297 value.z = *Pointer<Float>(buffer + 0); in writeColor()
2298 value.w = *Pointer<Float>(buffer + 4); in writeColor()
2300 …oC.x = As<Float4>(As<Int4>(oC.x) & *Pointer<Int4>(constants + OFFSET(Constants,maskD4X) + xMask * … in writeColor()
2301 …value = As<Float4>(As<Int4>(value) & *Pointer<Int4>(constants + OFFSET(Constants,invMaskD4X) + xMa… in writeColor()
2305 *Pointer<Float>(buffer + 0) = oC.x.z; in writeColor()
2306 *Pointer<Float>(buffer + 4) = oC.x.w; in writeColor()
2308 buffer -= *Pointer<Int>(data + OFFSET(DrawData,colorPitchB[index])); in writeColor()
2311 *Pointer<Float>(buffer + 0) = oC.x.x; in writeColor()
2312 *Pointer<Float>(buffer + 4) = oC.x.y; in writeColor()
2322 xyzw = As<UShort4>(Insert(As<Int2>(xyzw), *Pointer<Int>(buffer), 0)); in writeColor()
2324 buffer += *Pointer<Int>(data + OFFSET(DrawData, colorPitchB[index])); in writeColor()
2326 xyzw = As<UShort4>(Insert(As<Int2>(xyzw), *Pointer<Int>(buffer), 1)); in writeColor()
2329 …oC.x = As<Float4>(As<Int4>(oC.x) & *Pointer<Int4>(constants + OFFSET(Constants, maskD4X) + xMask *… in writeColor()
2330 …value = As<Float4>(As<Int4>(value) & *Pointer<Int4>(constants + OFFSET(Constants, invMaskD4X) + xM… in writeColor()
2336 *Pointer<Short>(buffer + 0) = Short(As<Int>(component)); in writeColor()
2338 *Pointer<Short>(buffer + 2) = Short(As<Int>(component)); in writeColor()
2340 buffer -= *Pointer<Int>(data + OFFSET(DrawData, colorPitchB[index])); in writeColor()
2343 *Pointer<Short>(buffer + 0) = Short(As<Int>(component)); in writeColor()
2345 *Pointer<Short>(buffer + 2) = Short(As<Int>(component)); in writeColor()
2350 *Pointer<UShort>(buffer + 0) = UShort(As<Int>(component)); in writeColor()
2352 *Pointer<UShort>(buffer + 2) = UShort(As<Int>(component)); in writeColor()
2354 buffer -= *Pointer<Int>(data + OFFSET(DrawData, colorPitchB[index])); in writeColor()
2357 *Pointer<UShort>(buffer + 0) = UShort(As<Int>(component)); in writeColor()
2359 *Pointer<UShort>(buffer + 2) = UShort(As<Int>(component)); in writeColor()
2371 xyzw = UInt(*Pointer<UShort>(buffer)) & 0xFFFF; in writeColor()
2372 buffer += *Pointer<Int>(data + OFFSET(DrawData, colorPitchB[index])); in writeColor()
2373 xyzw |= UInt(*Pointer<UShort>(buffer)) << 16; in writeColor()
2386 packedCol = (packedCol & *Pointer<UInt>(constants + OFFSET(Constants, maskB4Q) + 8 * xMask)) | in writeColor()
2387 (xyzw & *Pointer<UInt>(constants + OFFSET(Constants, invMaskB4Q) + 8 * xMask)); in writeColor()
2389 *Pointer<UShort>(buffer) = UShort(packedCol >> 16); in writeColor()
2390 buffer -= *Pointer<Int>(data + OFFSET(DrawData, colorPitchB[index])); in writeColor()
2391 *Pointer<UShort>(buffer) = UShort(packedCol); in writeColor()
2399 value = *Pointer<Float4>(buffer); in writeColor()
2404 …oC.x = As<Float4>(As<Int4>(oC.x) & *Pointer<Int4>(constants + OFFSET(Constants,maskD01X[rgbaWriteM… in writeColor()
2405 …masked = As<Float4>(As<Int4>(masked) & *Pointer<Int4>(constants + OFFSET(Constants,maskD01X[~rgbaW… in writeColor()
2409 …oC.x = As<Float4>(As<Int4>(oC.x) & *Pointer<Int4>(constants + OFFSET(Constants,maskQ01X) + xMask *… in writeColor()
2410 …value = As<Float4>(As<Int4>(value) & *Pointer<Int4>(constants + OFFSET(Constants,invMaskQ01X) + xM… in writeColor()
2412 *Pointer<Float4>(buffer) = oC.x; in writeColor()
2414 buffer += *Pointer<Int>(data + OFFSET(DrawData,colorPitchB[index])); in writeColor()
2416 value = *Pointer<Float4>(buffer); in writeColor()
2423 …oC.y = As<Float4>(As<Int4>(oC.y) & *Pointer<Int4>(constants + OFFSET(Constants,maskD01X[rgbaWriteM… in writeColor()
2424 …masked = As<Float4>(As<Int4>(masked) & *Pointer<Int4>(constants + OFFSET(Constants,maskD01X[~rgbaW… in writeColor()
2428 …oC.y = As<Float4>(As<Int4>(oC.y) & *Pointer<Int4>(constants + OFFSET(Constants,maskQ23X) + xMask *… in writeColor()
2429 …value = As<Float4>(As<Int4>(value) & *Pointer<Int4>(constants + OFFSET(Constants,invMaskQ23X) + xM… in writeColor()
2431 *Pointer<Float4>(buffer) = oC.y; in writeColor()
2441 UShort4 value = *Pointer<UShort4>(buffer); in writeColor()
2442 UInt2 mergedMask = *Pointer<UInt2>(constants + OFFSET(Constants, maskD01Q) + xMask * 8); in writeColor()
2445 Int tmpMask = *Pointer<Int>(constants + OFFSET(Constants, maskW4Q[rgbaWriteMask & 0x3][0])); in writeColor()
2449 … *Pointer<UInt2>(buffer) = (As<UInt2>(packedCol) & mergedMask) | (As<UInt2>(value) & ~mergedMask); in writeColor()
2451 buffer += *Pointer<Int>(data + OFFSET(DrawData, colorPitchB[index])); in writeColor()
2454 value = *Pointer<UShort4>(buffer); in writeColor()
2455 mergedMask = *Pointer<UInt2>(constants + OFFSET(Constants, maskD23Q) + xMask * 8); in writeColor()
2460 … *Pointer<UInt2>(buffer) = (As<UInt2>(packedCol) & mergedMask) | (As<UInt2>(value) & ~mergedMask); in writeColor()
2471 xyzw = Insert(xyzw, *Pointer<Int>(buffer), 0); in writeColor()
2472 buffer += *Pointer<Int>(data + OFFSET(DrawData, colorPitchB[index])); in writeColor()
2473 xyzw = Insert(xyzw, *Pointer<Int>(buffer), 1); in writeColor()
2484 UInt2 mergedMask = *Pointer<UInt2>(constants + OFFSET(Constants, maskW4Q) + xMask * 8); in writeColor()
2487 … Int tmpMask = *Pointer<Int>(constants + OFFSET(Constants, maskB4Q[5 * (rgbaWriteMask & 0x3)][0])); in writeColor()
2494 *Pointer<UInt>(buffer) = As<UInt>(Extract(packedCol, 1)); in writeColor()
2495 buffer -= *Pointer<Int>(data + OFFSET(DrawData, colorPitchB[index])); in writeColor()
2496 *Pointer<UInt>(buffer) = As<UInt>(Extract(packedCol, 0)); in writeColor()
2507 value = *Pointer<Float4>(buffer, 16); in writeColor()
2512 …oC.x = As<Float4>(As<Int4>(oC.x) & *Pointer<Int4>(constants + OFFSET(Constants,maskD4X[rgbaWriteMa… in writeColor()
2513 …masked = As<Float4>(As<Int4>(masked) & *Pointer<Int4>(constants + OFFSET(Constants,invMaskD4X[rgba… in writeColor()
2517 …oC.x = As<Float4>(As<Int4>(oC.x) & *Pointer<Int4>(constants + OFFSET(Constants,maskX0X) + xMask * … in writeColor()
2518 …value = As<Float4>(As<Int4>(value) & *Pointer<Int4>(constants + OFFSET(Constants,invMaskX0X) + xMa… in writeColor()
2520 *Pointer<Float4>(buffer, 16) = oC.x; in writeColor()
2524 value = *Pointer<Float4>(buffer + 16, 16); in writeColor()
2529 …oC.y = As<Float4>(As<Int4>(oC.y) & *Pointer<Int4>(constants + OFFSET(Constants,maskD4X[rgbaWriteMa… in writeColor()
2530 …masked = As<Float4>(As<Int4>(masked) & *Pointer<Int4>(constants + OFFSET(Constants,invMaskD4X[rgba… in writeColor()
2534 …oC.y = As<Float4>(As<Int4>(oC.y) & *Pointer<Int4>(constants + OFFSET(Constants,maskX1X) + xMask * … in writeColor()
2535 …value = As<Float4>(As<Int4>(value) & *Pointer<Int4>(constants + OFFSET(Constants,invMaskX1X) + xMa… in writeColor()
2537 *Pointer<Float4>(buffer + 16, 16) = oC.y; in writeColor()
2540 buffer += *Pointer<Int>(data + OFFSET(DrawData,colorPitchB[index])); in writeColor()
2543 value = *Pointer<Float4>(buffer, 16); in writeColor()
2548 …oC.z = As<Float4>(As<Int4>(oC.z) & *Pointer<Int4>(constants + OFFSET(Constants,maskD4X[rgbaWriteMa… in writeColor()
2549 …masked = As<Float4>(As<Int4>(masked) & *Pointer<Int4>(constants + OFFSET(Constants,invMaskD4X[rgba… in writeColor()
2553 …oC.z = As<Float4>(As<Int4>(oC.z) & *Pointer<Int4>(constants + OFFSET(Constants,maskX2X) + xMask * … in writeColor()
2554 …value = As<Float4>(As<Int4>(value) & *Pointer<Int4>(constants + OFFSET(Constants,invMaskX2X) + xMa… in writeColor()
2556 *Pointer<Float4>(buffer, 16) = oC.z; in writeColor()
2560 value = *Pointer<Float4>(buffer + 16, 16); in writeColor()
2565 …oC.w = As<Float4>(As<Int4>(oC.w) & *Pointer<Int4>(constants + OFFSET(Constants,maskD4X[rgbaWriteMa… in writeColor()
2566 …masked = As<Float4>(As<Int4>(masked) & *Pointer<Int4>(constants + OFFSET(Constants,invMaskD4X[rgba… in writeColor()
2570 …oC.w = As<Float4>(As<Int4>(oC.w) & *Pointer<Int4>(constants + OFFSET(Constants,maskX3X) + xMask * … in writeColor()
2571 …value = As<Float4>(As<Int4>(value) & *Pointer<Int4>(constants + OFFSET(Constants,invMaskX3X) + xMa… in writeColor()
2573 *Pointer<Float4>(buffer + 16, 16) = oC.w; in writeColor()
2583 UShort8 value = *Pointer<UShort8>(buffer); in writeColor()
2585 UInt4 mergedMask = *Pointer<UInt4>(constants + OFFSET(Constants, maskQ01X) + xMask * 16); in writeColor()
2588 UInt2 tmpMask = *Pointer<UInt2>(constants + OFFSET(Constants, maskW4Q[rgbaWriteMask][0])); in writeColor()
2592 … *Pointer<UInt4>(buffer) = (As<UInt4>(packedCol) & mergedMask) | (As<UInt4>(value) & ~mergedMask); in writeColor()
2594 buffer += *Pointer<Int>(data + OFFSET(DrawData, colorPitchB[index])); in writeColor()
2596 value = *Pointer<UShort8>(buffer); in writeColor()
2598 mergedMask = *Pointer<UInt4>(constants + OFFSET(Constants, maskQ23X) + xMask * 16); in writeColor()
2603 … *Pointer<UInt4>(buffer) = (As<UInt4>(packedCol) & mergedMask) | (As<UInt4>(value) & ~mergedMask); in writeColor()
2622 value = *Pointer<UInt2>(buffer, 16); in writeColor()
2623 mergedMask = *Pointer<UInt2>(constants + OFFSET(Constants, maskD01Q) + xMask * 8); in writeColor()
2626 mergedMask &= *Pointer<UInt2>(constants + OFFSET(Constants, maskB4Q[rgbaWriteMask][0])); in writeColor()
2628 *Pointer<UInt2>(buffer) = (packedCol & mergedMask) | (value & ~mergedMask); in writeColor()
2630 buffer += *Pointer<Int>(data + OFFSET(DrawData, colorPitchB[index])); in writeColor()
2640 value = *Pointer<UInt2>(buffer, 16); in writeColor()
2641 mergedMask = *Pointer<UInt2>(constants + OFFSET(Constants, maskD23Q) + xMask * 8); in writeColor()
2644 mergedMask &= *Pointer<UInt2>(constants + OFFSET(Constants, maskB4Q[rgbaWriteMask][0])); in writeColor()
2646 *Pointer<UInt2>(buffer) = (packedCol & mergedMask) | (value & ~mergedMask); in writeColor()
2661 Pointer<Byte> LUT = constants + OFFSET(Constants,sRGBtoLinear12_16); in sRGBtoLinear16_12_16()
2667 c.x = Insert(c.x, *Pointer<Short>(LUT + 2 * Int(Extract(c.x, 0))), 0); in sRGBtoLinear16_12_16()
2668 c.x = Insert(c.x, *Pointer<Short>(LUT + 2 * Int(Extract(c.x, 1))), 1); in sRGBtoLinear16_12_16()
2669 c.x = Insert(c.x, *Pointer<Short>(LUT + 2 * Int(Extract(c.x, 2))), 2); in sRGBtoLinear16_12_16()
2670 c.x = Insert(c.x, *Pointer<Short>(LUT + 2 * Int(Extract(c.x, 3))), 3); in sRGBtoLinear16_12_16()
2672 c.y = Insert(c.y, *Pointer<Short>(LUT + 2 * Int(Extract(c.y, 0))), 0); in sRGBtoLinear16_12_16()
2673 c.y = Insert(c.y, *Pointer<Short>(LUT + 2 * Int(Extract(c.y, 1))), 1); in sRGBtoLinear16_12_16()
2674 c.y = Insert(c.y, *Pointer<Short>(LUT + 2 * Int(Extract(c.y, 2))), 2); in sRGBtoLinear16_12_16()
2675 c.y = Insert(c.y, *Pointer<Short>(LUT + 2 * Int(Extract(c.y, 3))), 3); in sRGBtoLinear16_12_16()
2677 c.z = Insert(c.z, *Pointer<Short>(LUT + 2 * Int(Extract(c.z, 0))), 0); in sRGBtoLinear16_12_16()
2678 c.z = Insert(c.z, *Pointer<Short>(LUT + 2 * Int(Extract(c.z, 1))), 1); in sRGBtoLinear16_12_16()
2679 c.z = Insert(c.z, *Pointer<Short>(LUT + 2 * Int(Extract(c.z, 2))), 2); in sRGBtoLinear16_12_16()
2680 c.z = Insert(c.z, *Pointer<Short>(LUT + 2 * Int(Extract(c.z, 3))), 3); in sRGBtoLinear16_12_16()
2694 Pointer<Byte> LUT = constants + OFFSET(Constants,linearToSRGB12_16); in linearToSRGB12_16()
2696 c.x = Insert(c.x, *Pointer<Short>(LUT + 2 * Int(Extract(c.x, 0))), 0); in linearToSRGB12_16()
2697 c.x = Insert(c.x, *Pointer<Short>(LUT + 2 * Int(Extract(c.x, 1))), 1); in linearToSRGB12_16()
2698 c.x = Insert(c.x, *Pointer<Short>(LUT + 2 * Int(Extract(c.x, 2))), 2); in linearToSRGB12_16()
2699 c.x = Insert(c.x, *Pointer<Short>(LUT + 2 * Int(Extract(c.x, 3))), 3); in linearToSRGB12_16()
2701 c.y = Insert(c.y, *Pointer<Short>(LUT + 2 * Int(Extract(c.y, 0))), 0); in linearToSRGB12_16()
2702 c.y = Insert(c.y, *Pointer<Short>(LUT + 2 * Int(Extract(c.y, 1))), 1); in linearToSRGB12_16()
2703 c.y = Insert(c.y, *Pointer<Short>(LUT + 2 * Int(Extract(c.y, 2))), 2); in linearToSRGB12_16()
2704 c.y = Insert(c.y, *Pointer<Short>(LUT + 2 * Int(Extract(c.y, 3))), 3); in linearToSRGB12_16()
2706 c.z = Insert(c.z, *Pointer<Short>(LUT + 2 * Int(Extract(c.z, 0))), 0); in linearToSRGB12_16()
2707 c.z = Insert(c.z, *Pointer<Short>(LUT + 2 * Int(Extract(c.z, 1))), 1); in linearToSRGB12_16()
2708 c.z = Insert(c.z, *Pointer<Short>(LUT + 2 * Int(Extract(c.z, 2))), 2); in linearToSRGB12_16()
2709 c.z = Insert(c.z, *Pointer<Short>(LUT + 2 * Int(Extract(c.z, 3))), 3); in linearToSRGB12_16()