Lines Matching refs:SIMD

76 sw::SIMD::Float sRGBtoLinear(sw::SIMD::Float c)  in sRGBtoLinear()
78 sw::SIMD::Float lc = c * sw::SIMD::Float(1.0f / 12.92f); in sRGBtoLinear()
79 …sw::SIMD::Float ec = sw::power((c + sw::SIMD::Float(0.055f)) * sw::SIMD::Float(1.0f / 1.055f), sw:… in sRGBtoLinear()
81 sw::SIMD::Int linear = CmpLT(c, sw::SIMD::Float(0.04045f)); in sRGBtoLinear()
83 …return rr::As<sw::SIMD::Float>((linear & rr::As<sw::SIMD::Int>(lc)) | (~linear & rr::As<sw::SIMD::… in sRGBtoLinear()
132 Array<SIMD::Float> out(4); in EmitImageSample()
147 void SpirvShader::EmitImageSampleUnconditional(Array<SIMD::Float> &out, ImageInstruction instructio… in EmitImageSampleUnconditional()
241 Array<SIMD::Float> in(16); // Maximum 16 input parameter components. in EmitImageSampleUnconditional()
304 in[i] = As<SIMD::Float>(SIMD::Int(0)); in EmitImageSampleUnconditional()
315 in[i] = As<SIMD::Float>(offsetValue.Int(j)); // Integer values, but transfered as float. in EmitImageSampleUnconditional()
322 in[i] = As<SIMD::Float>(sampleValue.Int(0)); in EmitImageSampleUnconditional()
412 auto one = SIMD::Int(1); in GetImageDimensions()
414 if(dimensions >= 1) dst.move(0, Max(SIMD::Int(width) >> lod, one)); in GetImageDimensions()
415 if(dimensions >= 2) dst.move(1, Max(SIMD::Int(height) >> lod, one)); in GetImageDimensions()
416 if(dimensions >= 3) dst.move(2, Max(SIMD::Int(depth) >> lod, one)); in GetImageDimensions()
421 if(dimensions >= 1) dst.move(0, SIMD::Int(width)); in GetImageDimensions()
422 if(dimensions >= 2) dst.move(1, SIMD::Int(height)); in GetImageDimensions()
423 if(dimensions >= 3) dst.move(2, SIMD::Int(depth)); in GetImageDimensions()
428 dst.move(dimensions, SIMD::Int(depth)); in GetImageDimensions()
455 dst.move(0, SIMD::Int(mipLevels)); in EmitImageQueryLevels()
490 dst.move(0, SIMD::Int(sampleCount)); in EmitImageQuerySamples()
495 SIMD::Pointer SpirvShader::GetTexelAddress(EmitState const *state, Pointer<Byte> imageBase, Int ima… in GetTexelAddress()
502 SIMD::Int u = coordinate.Int(0); in GetTexelAddress()
503 SIMD::Int v = SIMD::Int(0); in GetTexelAddress()
516 auto rowPitch = SIMD::Int(*Pointer<Int>(descriptor + (useStencilAspect in GetTexelAddress()
519 auto slicePitch = SIMD::Int( in GetTexelAddress()
523 auto samplePitch = SIMD::Int( in GetTexelAddress()
528 SIMD::Int ptrOffset = u * SIMD::Int(texelSize); in GetTexelAddress()
535 SIMD::Int w = 0; in GetTexelAddress()
554 ptrOffset += SIMD::Int(routine->viewID) * slicePitch; in GetTexelAddress()
557 SIMD::Int n = 0; in GetTexelAddress()
572 SIMD::UInt width = *Pointer<UInt>(descriptor + OFFSET(vk::StorageImageDescriptor, width)); in GetTexelAddress()
573 SIMD::Int oobMask = As<SIMD::Int>(CmpNLT(As<SIMD::UInt>(u), width)); in GetTexelAddress()
577 SIMD::UInt height = *Pointer<UInt>(descriptor + OFFSET(vk::StorageImageDescriptor, height)); in GetTexelAddress()
578 oobMask |= As<SIMD::Int>(CmpNLT(As<SIMD::UInt>(v), height)); in GetTexelAddress()
585 oobMask |= As<SIMD::Int>(CmpNLT(As<SIMD::UInt>(w), SIMD::UInt(depth))); in GetTexelAddress()
593SIMD::UInt sampleCount = *Pointer<UInt>(descriptor + OFFSET(vk::StorageImageDescriptor, sampleCoun… in GetTexelAddress()
594 oobMask |= As<SIMD::Int>(CmpNLT(As<SIMD::UInt>(n), sampleCount)); in GetTexelAddress()
601 …ptrOffset = (ptrOffset & ~oobMask) | (oobMask & SIMD::Int(OOB_OFFSET)); // oob ? OOB_OFFSET : ptr… in GetTexelAddress()
604 return SIMD::Pointer(imageBase, imageSizeInBytes, ptrOffset); in GetTexelAddress()
683 SIMD::Int packed[4]; in EmitImageRead()
688 packed[i] = texelPtr.Load<SIMD::Int>(robustness, state->activeLaneMask()); in EmitImageRead()
694 SIMD::Int offsets = texelPtr.offsets(); in EmitImageRead()
695 SIMD::Int mask = state->activeLaneMask() & texelPtr.isInBounds(2, robustness); in EmitImageRead()
697 for(int i = 0; i < SIMD::Width; i++) in EmitImageRead()
707 SIMD::Int offsets = texelPtr.offsets(); in EmitImageRead()
708 SIMD::Int mask = state->activeLaneMask() & texelPtr.isInBounds(1, robustness); in EmitImageRead()
710 for(int i = 0; i < SIMD::Width; i++) in EmitImageRead()
738 dst.move(1, SIMD::Int(0)); in EmitImageRead()
739 dst.move(2, SIMD::Int(0)); in EmitImageRead()
740 dst.move(3, SIMD::Int(1)); in EmitImageRead()
747 dst.move(1, SIMD::Float(0.0f)); in EmitImageRead()
748 dst.move(2, SIMD::Float(0.0f)); in EmitImageRead()
749 dst.move(3, SIMD::Float(1.0f)); in EmitImageRead()
752 dst.move(0, SIMD::Float(packed[0] & SIMD::Int(0xFFFF)) * SIMD::Float(1.0f / 0xFFFF)); in EmitImageRead()
753 dst.move(1, SIMD::Float(0.0f)); in EmitImageRead()
754 dst.move(2, SIMD::Float(0.0f)); in EmitImageRead()
755 dst.move(3, SIMD::Float(1.0f)); in EmitImageRead()
758 dst.move(0, SIMD::Float(packed[0] & SIMD::Int(0xFFFF)) * SIMD::Float(1.0f / 0xFFFF)); in EmitImageRead()
759 dst.move(1, SIMD::Float((packed[0] >> 16) & SIMD::Int(0xFFFF)) * SIMD::Float(1.0f / 0xFFFF)); in EmitImageRead()
760 dst.move(2, SIMD::Float(packed[1] & SIMD::Int(0xFFFF)) * SIMD::Float(1.0f / 0xFFFF)); in EmitImageRead()
761 dst.move(3, SIMD::Float((packed[1] >> 16) & SIMD::Int(0xFFFF)) * SIMD::Float(1.0f / 0xFFFF)); in EmitImageRead()
764 …dst.move(0, Max(SIMD::Float((packed[0] << 16) & SIMD::Int(0xFFFF0000)) * SIMD::Float(1.0f / 0x7FFF… in EmitImageRead()
765 …dst.move(1, Max(SIMD::Float(packed[0] & SIMD::Int(0xFFFF0000)) * SIMD::Float(1.0f / 0x7FFF0000), S… in EmitImageRead()
766 …dst.move(2, Max(SIMD::Float((packed[1] << 16) & SIMD::Int(0xFFFF0000)) * SIMD::Float(1.0f / 0x7FFF… in EmitImageRead()
767 …dst.move(3, Max(SIMD::Float(packed[1] & SIMD::Int(0xFFFF0000)) * SIMD::Float(1.0f / 0x7FFF0000), S… in EmitImageRead()
776 dst.move(0, packed[0] & SIMD::Int(0xFFFF)); in EmitImageRead()
777 dst.move(1, (packed[0] >> 16) & SIMD::Int(0xFFFF)); in EmitImageRead()
778 dst.move(2, packed[1] & SIMD::Int(0xFFFF)); in EmitImageRead()
779 dst.move(3, (packed[1] >> 16) & SIMD::Int(0xFFFF)); in EmitImageRead()
782 dst.move(0, halfToFloatBits(As<SIMD::UInt>(packed[0]) & SIMD::UInt(0x0000FFFF))); in EmitImageRead()
783 dst.move(1, halfToFloatBits((As<SIMD::UInt>(packed[0]) & SIMD::UInt(0xFFFF0000)) >> 16)); in EmitImageRead()
784 dst.move(2, halfToFloatBits(As<SIMD::UInt>(packed[1]) & SIMD::UInt(0x0000FFFF))); in EmitImageRead()
785 dst.move(3, halfToFloatBits((As<SIMD::UInt>(packed[1]) & SIMD::UInt(0xFFFF0000)) >> 16)); in EmitImageRead()
789 …dst.move(0, Max(SIMD::Float((packed[0] << 24) & SIMD::Int(0xFF000000)) * SIMD::Float(1.0f / 0x7F00… in EmitImageRead()
790 …dst.move(1, Max(SIMD::Float((packed[0] << 16) & SIMD::Int(0xFF000000)) * SIMD::Float(1.0f / 0x7F00… in EmitImageRead()
791 …dst.move(2, Max(SIMD::Float((packed[0] << 8) & SIMD::Int(0xFF000000)) * SIMD::Float(1.0f / 0x7F000… in EmitImageRead()
792 …dst.move(3, Max(SIMD::Float((packed[0]) & SIMD::Int(0xFF000000)) * SIMD::Float(1.0f / 0x7F000000),… in EmitImageRead()
796 dst.move(0, SIMD::Float(packed[0] & SIMD::Int(0xFF)) * SIMD::Float(1.0f / 0xFF)); in EmitImageRead()
797 dst.move(1, SIMD::Float((packed[0] >> 8) & SIMD::Int(0xFF)) * SIMD::Float(1.0f / 0xFF)); in EmitImageRead()
798 dst.move(2, SIMD::Float((packed[0] >> 16) & SIMD::Int(0xFF)) * SIMD::Float(1.0f / 0xFF)); in EmitImageRead()
799 dst.move(3, SIMD::Float((packed[0] >> 24) & SIMD::Int(0xFF)) * SIMD::Float(1.0f / 0xFF)); in EmitImageRead()
803 dst.move(0, ::sRGBtoLinear(SIMD::Float(packed[0] & SIMD::Int(0xFF)) * SIMD::Float(1.0f / 0xFF))); in EmitImageRead()
804 …dst.move(1, ::sRGBtoLinear(SIMD::Float((packed[0] >> 8) & SIMD::Int(0xFF)) * SIMD::Float(1.0f / 0x… in EmitImageRead()
805 …dst.move(2, ::sRGBtoLinear(SIMD::Float((packed[0] >> 16) & SIMD::Int(0xFF)) * SIMD::Float(1.0f / 0… in EmitImageRead()
806 dst.move(3, SIMD::Float((packed[0] >> 24) & SIMD::Int(0xFF)) * SIMD::Float(1.0f / 0xFF)); in EmitImageRead()
809 dst.move(0, SIMD::Float((packed[0] >> 16) & SIMD::Int(0xFF)) * SIMD::Float(1.0f / 0xFF)); in EmitImageRead()
810 dst.move(1, SIMD::Float((packed[0] >> 8) & SIMD::Int(0xFF)) * SIMD::Float(1.0f / 0xFF)); in EmitImageRead()
811 dst.move(2, SIMD::Float(packed[0] & SIMD::Int(0xFF)) * SIMD::Float(1.0f / 0xFF)); in EmitImageRead()
812 dst.move(3, SIMD::Float((packed[0] >> 24) & SIMD::Int(0xFF)) * SIMD::Float(1.0f / 0xFF)); in EmitImageRead()
815 …dst.move(0, ::sRGBtoLinear(SIMD::Float((packed[0] >> 16) & SIMD::Int(0xFF)) * SIMD::Float(1.0f / 0… in EmitImageRead()
816 …dst.move(1, ::sRGBtoLinear(SIMD::Float((packed[0] >> 8) & SIMD::Int(0xFF)) * SIMD::Float(1.0f / 0x… in EmitImageRead()
817 dst.move(2, ::sRGBtoLinear(SIMD::Float(packed[0] & SIMD::Int(0xFF)) * SIMD::Float(1.0f / 0xFF))); in EmitImageRead()
818 dst.move(3, SIMD::Float((packed[0] >> 24) & SIMD::Int(0xFF)) * SIMD::Float(1.0f / 0xFF)); in EmitImageRead()
822 dst.move(0, As<SIMD::UInt>(packed[0]) & SIMD::UInt(0xFF)); in EmitImageRead()
823 dst.move(1, (As<SIMD::UInt>(packed[0]) >> 8) & SIMD::UInt(0xFF)); in EmitImageRead()
824 dst.move(2, (As<SIMD::UInt>(packed[0]) >> 16) & SIMD::UInt(0xFF)); in EmitImageRead()
825 dst.move(3, (As<SIMD::UInt>(packed[0]) >> 24) & SIMD::UInt(0xFF)); in EmitImageRead()
835 dst.move(0, SIMD::Float((packed[0] & SIMD::Int(0xFF))) * SIMD::Float(1.0f / 0xFF)); in EmitImageRead()
836 dst.move(1, SIMD::Float(0.0f)); in EmitImageRead()
837 dst.move(2, SIMD::Float(0.0f)); in EmitImageRead()
838 dst.move(3, SIMD::Float(1.0f)); in EmitImageRead()
841 …dst.move(0, Max(SIMD::Float((packed[0] << 24) & SIMD::Int(0xFF000000)) * SIMD::Float(1.0f / 0x7F00… in EmitImageRead()
842 dst.move(1, SIMD::Float(0.0f)); in EmitImageRead()
843 dst.move(2, SIMD::Float(0.0f)); in EmitImageRead()
844 dst.move(3, SIMD::Float(1.0f)); in EmitImageRead()
848 dst.move(0, As<SIMD::UInt>(packed[0]) & SIMD::UInt(0xFF)); in EmitImageRead()
849 dst.move(1, SIMD::UInt(0)); in EmitImageRead()
850 dst.move(2, SIMD::UInt(0)); in EmitImageRead()
851 dst.move(3, SIMD::UInt(1)); in EmitImageRead()
855 dst.move(1, SIMD::Int(0)); in EmitImageRead()
856 dst.move(2, SIMD::Int(0)); in EmitImageRead()
857 dst.move(3, SIMD::Int(1)); in EmitImageRead()
860 dst.move(0, SIMD::Float(packed[0] & SIMD::Int(0xFF)) * SIMD::Float(1.0f / 0xFF)); in EmitImageRead()
861 dst.move(1, SIMD::Float((packed[0] >> 8) & SIMD::Int(0xFF)) * SIMD::Float(1.0f / 0xFF)); in EmitImageRead()
862 dst.move(2, SIMD::Float(0.0f)); in EmitImageRead()
863 dst.move(3, SIMD::Float(1.0f)); in EmitImageRead()
866 …dst.move(0, Max(SIMD::Float((packed[0] << 24) & SIMD::Int(0xFF000000)) * SIMD::Float(1.0f / 0x7F00… in EmitImageRead()
867 …dst.move(1, Max(SIMD::Float((packed[0] << 16) & SIMD::Int(0xFF000000)) * SIMD::Float(1.0f / 0x7F00… in EmitImageRead()
868 dst.move(2, SIMD::Float(0.0f)); in EmitImageRead()
869 dst.move(3, SIMD::Float(1.0f)); in EmitImageRead()
872 dst.move(0, As<SIMD::UInt>(packed[0]) & SIMD::UInt(0xFF)); in EmitImageRead()
873 dst.move(1, (As<SIMD::UInt>(packed[0]) >> 8) & SIMD::UInt(0xFF)); in EmitImageRead()
874 dst.move(2, SIMD::UInt(0)); in EmitImageRead()
875 dst.move(3, SIMD::UInt(1)); in EmitImageRead()
880 dst.move(2, SIMD::Int(0)); in EmitImageRead()
881 dst.move(3, SIMD::Int(1)); in EmitImageRead()
884 dst.move(0, halfToFloatBits(As<SIMD::UInt>(packed[0]) & SIMD::UInt(0x0000FFFF))); in EmitImageRead()
885 dst.move(1, SIMD::Float(0.0f)); in EmitImageRead()
886 dst.move(2, SIMD::Float(0.0f)); in EmitImageRead()
887 dst.move(3, SIMD::Float(1.0f)); in EmitImageRead()
890 dst.move(0, SIMD::Float(packed[0] & SIMD::Int(0xFFFF)) * SIMD::Float(1.0f / 0xFFFF)); in EmitImageRead()
891 dst.move(1, SIMD::Float(0.0f)); in EmitImageRead()
892 dst.move(2, SIMD::Float(0.0f)); in EmitImageRead()
893 dst.move(3, SIMD::Float(1.0f)); in EmitImageRead()
896 …dst.move(0, Max(SIMD::Float((packed[0] << 16) & SIMD::Int(0xFFFF0000)) * SIMD::Float(1.0f / 0x7FFF… in EmitImageRead()
897 dst.move(1, SIMD::Float(0.0f)); in EmitImageRead()
898 dst.move(2, SIMD::Float(0.0f)); in EmitImageRead()
899 dst.move(3, SIMD::Float(1.0f)); in EmitImageRead()
902 dst.move(0, packed[0] & SIMD::Int(0xFFFF)); in EmitImageRead()
903 dst.move(1, SIMD::UInt(0)); in EmitImageRead()
904 dst.move(2, SIMD::UInt(0)); in EmitImageRead()
905 dst.move(3, SIMD::UInt(1)); in EmitImageRead()
909 dst.move(1, SIMD::Int(0)); in EmitImageRead()
910 dst.move(2, SIMD::Int(0)); in EmitImageRead()
911 dst.move(3, SIMD::Int(1)); in EmitImageRead()
914 dst.move(0, halfToFloatBits(As<SIMD::UInt>(packed[0]) & SIMD::UInt(0x0000FFFF))); in EmitImageRead()
915 dst.move(1, halfToFloatBits((As<SIMD::UInt>(packed[0]) & SIMD::UInt(0xFFFF0000)) >> 16)); in EmitImageRead()
916 dst.move(2, SIMD::Float(0.0f)); in EmitImageRead()
917 dst.move(3, SIMD::Float(1.0f)); in EmitImageRead()
920 dst.move(0, SIMD::Float(packed[0] & SIMD::Int(0xFFFF)) * SIMD::Float(1.0f / 0xFFFF)); in EmitImageRead()
921 dst.move(1, SIMD::Float(As<SIMD::UInt>(packed[0]) >> 16) * SIMD::Float(1.0f / 0xFFFF)); in EmitImageRead()
922 dst.move(2, SIMD::Float(0.0f)); in EmitImageRead()
923 dst.move(3, SIMD::Float(1.0f)); in EmitImageRead()
926 …dst.move(0, Max(SIMD::Float((packed[0] << 16) & SIMD::Int(0xFFFF0000)) * SIMD::Float(1.0f / 0x7FFF… in EmitImageRead()
927 …dst.move(1, Max(SIMD::Float(packed[0] & SIMD::Int(0xFFFF0000)) * SIMD::Float(1.0f / 0x7FFF0000), S… in EmitImageRead()
928 dst.move(2, SIMD::Float(0.0f)); in EmitImageRead()
929 dst.move(3, SIMD::Float(1.0f)); in EmitImageRead()
932 dst.move(0, packed[0] & SIMD::Int(0xFFFF)); in EmitImageRead()
933 dst.move(1, (packed[0] >> 16) & SIMD::Int(0xFFFF)); in EmitImageRead()
934 dst.move(2, SIMD::UInt(0)); in EmitImageRead()
935 dst.move(3, SIMD::UInt(1)); in EmitImageRead()
940 dst.move(2, SIMD::Int(0)); in EmitImageRead()
941 dst.move(3, SIMD::Int(1)); in EmitImageRead()
947 dst.move(2, SIMD::Int(0)); in EmitImageRead()
948 dst.move(3, SIMD::Int(1)); in EmitImageRead()
953 dst.move(2, SIMD::Float(0.0f)); in EmitImageRead()
954 dst.move(3, SIMD::Float(1.0f)); in EmitImageRead()
957 dst.move(0, packed[0] & SIMD::Int(0x3FF)); in EmitImageRead()
958 dst.move(1, (packed[0] >> 10) & SIMD::Int(0x3FF)); in EmitImageRead()
959 dst.move(2, (packed[0] >> 20) & SIMD::Int(0x3FF)); in EmitImageRead()
960 dst.move(3, (packed[0] >> 30) & SIMD::Int(0x3)); in EmitImageRead()
963 dst.move(2, packed[0] & SIMD::Int(0x3FF)); in EmitImageRead()
964 dst.move(1, (packed[0] >> 10) & SIMD::Int(0x3FF)); in EmitImageRead()
965 dst.move(0, (packed[0] >> 20) & SIMD::Int(0x3FF)); in EmitImageRead()
966 dst.move(3, (packed[0] >> 30) & SIMD::Int(0x3)); in EmitImageRead()
969 dst.move(0, SIMD::Float((packed[0]) & SIMD::Int(0x3FF)) * SIMD::Float(1.0f / 0x3FF)); in EmitImageRead()
970 dst.move(1, SIMD::Float((packed[0] >> 10) & SIMD::Int(0x3FF)) * SIMD::Float(1.0f / 0x3FF)); in EmitImageRead()
971 dst.move(2, SIMD::Float((packed[0] >> 20) & SIMD::Int(0x3FF)) * SIMD::Float(1.0f / 0x3FF)); in EmitImageRead()
972 dst.move(3, SIMD::Float((packed[0] >> 30) & SIMD::Int(0x3)) * SIMD::Float(1.0f / 0x3)); in EmitImageRead()
975 dst.move(2, SIMD::Float((packed[0]) & SIMD::Int(0x3FF)) * SIMD::Float(1.0f / 0x3FF)); in EmitImageRead()
976 dst.move(1, SIMD::Float((packed[0] >> 10) & SIMD::Int(0x3FF)) * SIMD::Float(1.0f / 0x3FF)); in EmitImageRead()
977 dst.move(0, SIMD::Float((packed[0] >> 20) & SIMD::Int(0x3FF)) * SIMD::Float(1.0f / 0x3FF)); in EmitImageRead()
978 dst.move(3, SIMD::Float((packed[0] >> 30) & SIMD::Int(0x3)) * SIMD::Float(1.0f / 0x3)); in EmitImageRead()
981 dst.move(0, SIMD::Float((packed[0] >> 11) & SIMD::Int(0x1F)) * SIMD::Float(1.0f / 0x1F)); in EmitImageRead()
982 dst.move(1, SIMD::Float((packed[0] >> 5) & SIMD::Int(0x3F)) * SIMD::Float(1.0f / 0x3F)); in EmitImageRead()
983 dst.move(2, SIMD::Float((packed[0]) & SIMD::Int(0x1F)) * SIMD::Float(1.0f / 0x1F)); in EmitImageRead()
984 dst.move(3, SIMD::Float(1.0f)); in EmitImageRead()
987 dst.move(0, SIMD::Float((packed[0] >> 10) & SIMD::Int(0x1F)) * SIMD::Float(1.0f / 0x1F)); in EmitImageRead()
988 dst.move(1, SIMD::Float((packed[0] >> 5) & SIMD::Int(0x1F)) * SIMD::Float(1.0f / 0x1F)); in EmitImageRead()
989 dst.move(2, SIMD::Float((packed[0]) & SIMD::Int(0x1F)) * SIMD::Float(1.0f / 0x1F)); in EmitImageRead()
990 dst.move(3, SIMD::Float((packed[0] >> 15) & SIMD::Int(0x1))); in EmitImageRead()
993 dst.move(0, halfToFloatBits((packed[0] << 4) & SIMD::Int(0x7FF0))); in EmitImageRead()
994 dst.move(1, halfToFloatBits((packed[0] >> 7) & SIMD::Int(0x7FF0))); in EmitImageRead()
995 dst.move(2, halfToFloatBits((packed[0] >> 17) & SIMD::Int(0x7FE0))); in EmitImageRead()
996 dst.move(3, SIMD::Float(1.0f)); in EmitImageRead()
1051 SIMD::Int packed[4]; in EmitImageWrite()
1073 …packed[0] = (SIMD::UInt(Round(Min(Max(texel.Float(0), SIMD::Float(0.0f)), SIMD::Float(1.0f)) * SIM… in EmitImageWrite()
1074 …((SIMD::UInt(Round(Min(Max(texel.Float(1), SIMD::Float(0.0f)), SIMD::Float(1.0f)) * SIMD::Float(25… in EmitImageWrite()
1075 …((SIMD::UInt(Round(Min(Max(texel.Float(2), SIMD::Float(0.0f)), SIMD::Float(1.0f)) * SIMD::Float(25… in EmitImageWrite()
1076 …((SIMD::UInt(Round(Min(Max(texel.Float(3), SIMD::Float(0.0f)), SIMD::Float(1.0f)) * SIMD::Float(25… in EmitImageWrite()
1080 …packed[0] = (SIMD::Int(Round(Min(Max(texel.Float(0), SIMD::Float(-1.0f)), SIMD::Float(1.0f)) * SIM… in EmitImageWrite()
1081 SIMD::Int(0xFF)) | in EmitImageWrite()
1082 …((SIMD::Int(Round(Min(Max(texel.Float(1), SIMD::Float(-1.0f)), SIMD::Float(1.0f)) * SIMD::Float(12… in EmitImageWrite()
1083 SIMD::Int(0xFF)) in EmitImageWrite()
1085 …((SIMD::Int(Round(Min(Max(texel.Float(2), SIMD::Float(-1.0f)), SIMD::Float(1.0f)) * SIMD::Float(12… in EmitImageWrite()
1086 SIMD::Int(0xFF)) in EmitImageWrite()
1088 …((SIMD::Int(Round(Min(Max(texel.Float(3), SIMD::Float(-1.0f)), SIMD::Float(1.0f)) * SIMD::Float(12… in EmitImageWrite()
1089 SIMD::Int(0xFF)) in EmitImageWrite()
1095 packed[0] = (SIMD::UInt(texel.UInt(0) & SIMD::UInt(0xff))) | in EmitImageWrite()
1096 (SIMD::UInt(texel.UInt(1) & SIMD::UInt(0xff)) << 8) | in EmitImageWrite()
1097 (SIMD::UInt(texel.UInt(2) & SIMD::UInt(0xff)) << 16) | in EmitImageWrite()
1098 (SIMD::UInt(texel.UInt(3) & SIMD::UInt(0xff)) << 24); in EmitImageWrite()
1108 …packed[0] = SIMD::UInt(texel.UInt(0) & SIMD::UInt(0xFFFF)) | (SIMD::UInt(texel.UInt(1) & SIMD::UIn… in EmitImageWrite()
1109 …packed[1] = SIMD::UInt(texel.UInt(2) & SIMD::UInt(0xFFFF)) | (SIMD::UInt(texel.UInt(3) & SIMD::UIn… in EmitImageWrite()
1125 …packed[0] = SIMD::UInt(texel.UInt(0) & SIMD::UInt(0xFFFF)) | (SIMD::UInt(texel.UInt(1) & SIMD::UIn… in EmitImageWrite()
1130 …packed[0] = ((floatToHalfBits(As<SIMD::UInt>(Max(texel.Float(0), SIMD::Float(0.0f))), false) & SIM… in EmitImageWrite()
1131 …((floatToHalfBits(As<SIMD::UInt>(Max(texel.Float(1), SIMD::Float(0.0f))), false) & SIMD::UInt(0x7F… in EmitImageWrite()
1132 …((floatToHalfBits(As<SIMD::UInt>(Max(texel.Float(2), SIMD::Float(0.0f))), false) & SIMD::UInt(0x7F… in EmitImageWrite()
1140 …packed[0] = SIMD::UInt(Round(Min(Max(texel.Float(0), SIMD::Float(0.0f)), SIMD::Float(1.0f)) * SIMD in EmitImageWrite()
1141 …(SIMD::UInt(Round(Min(Max(texel.Float(1), SIMD::Float(0.0f)), SIMD::Float(1.0f)) * SIMD::Float(0xF… in EmitImageWrite()
1142 …packed[1] = SIMD::UInt(Round(Min(Max(texel.Float(2), SIMD::Float(0.0f)), SIMD::Float(1.0f)) * SIMD in EmitImageWrite()
1143 …(SIMD::UInt(Round(Min(Max(texel.Float(3), SIMD::Float(0.0f)), SIMD::Float(1.0f)) * SIMD::Float(0xF… in EmitImageWrite()
1147 …packed[0] = (SIMD::UInt(Round(Min(Max(texel.Float(0), SIMD::Float(0.0f)), SIMD::Float(1.0f)) * SIM… in EmitImageWrite()
1148 …((SIMD::UInt(Round(Min(Max(texel.Float(1), SIMD::Float(0.0f)), SIMD::Float(1.0f)) * SIMD::Float(0x… in EmitImageWrite()
1149 …((SIMD::UInt(Round(Min(Max(texel.Float(2), SIMD::Float(0.0f)), SIMD::Float(1.0f)) * SIMD::Float(0x… in EmitImageWrite()
1150 …((SIMD::UInt(Round(Min(Max(texel.Float(3), SIMD::Float(0.0f)), SIMD::Float(1.0f)) * SIMD::Float(0x… in EmitImageWrite()
1154 …packed[0] = SIMD::UInt(Round(Min(Max(texel.Float(0), SIMD::Float(0.0f)), SIMD::Float(1.0f)) * SIMD in EmitImageWrite()
1155 …(SIMD::UInt(Round(Min(Max(texel.Float(1), SIMD::Float(0.0f)), SIMD::Float(1.0f)) * SIMD::Float(0xF… in EmitImageWrite()
1159 …packed[0] = SIMD::UInt(Round(Min(Max(texel.Float(0), SIMD::Float(0.0f)), SIMD::Float(1.0f)) * SIMD in EmitImageWrite()
1160 …(SIMD::UInt(Round(Min(Max(texel.Float(1), SIMD::Float(0.0f)), SIMD::Float(1.0f)) * SIMD::Float(0xF… in EmitImageWrite()
1164 …packed[0] = SIMD::UInt(Round(Min(Max(texel.Float(0), SIMD::Float(0.0f)), SIMD::Float(1.0f)) * SIMD in EmitImageWrite()
1168 …packed[0] = SIMD::UInt(Round(Min(Max(texel.Float(0), SIMD::Float(0.0f)), SIMD::Float(1.0f)) * SIMD in EmitImageWrite()
1172 …packed[0] = (SIMD::Int(Round(Min(Max(texel.Float(0), SIMD::Float(-1.0f)), SIMD::Float(1.0f)) * SIM… in EmitImageWrite()
1173 …(SIMD::Int(Round(Min(Max(texel.Float(1), SIMD::Float(-1.0f)), SIMD::Float(1.0f)) * SIMD::Float(0x7… in EmitImageWrite()
1174 …packed[1] = (SIMD::Int(Round(Min(Max(texel.Float(2), SIMD::Float(-1.0f)), SIMD::Float(1.0f)) * SIM… in EmitImageWrite()
1175 …(SIMD::Int(Round(Min(Max(texel.Float(3), SIMD::Float(-1.0f)), SIMD::Float(1.0f)) * SIMD::Float(0x7… in EmitImageWrite()
1179 …packed[0] = (SIMD::Int(Round(Min(Max(texel.Float(0), SIMD::Float(-1.0f)), SIMD::Float(1.0f)) * SIM… in EmitImageWrite()
1180 …(SIMD::Int(Round(Min(Max(texel.Float(1), SIMD::Float(-1.0f)), SIMD::Float(1.0f)) * SIMD::Float(0x7… in EmitImageWrite()
1184 …packed[0] = (SIMD::Int(Round(Min(Max(texel.Float(0), SIMD::Float(-1.0f)), SIMD::Float(1.0f)) * SIM… in EmitImageWrite()
1185 …(SIMD::Int(Round(Min(Max(texel.Float(1), SIMD::Float(-1.0f)), SIMD::Float(1.0f)) * SIMD::Float(0x7… in EmitImageWrite()
1189 …packed[0] = SIMD::Int(Round(Min(Max(texel.Float(0), SIMD::Float(-1.0f)), SIMD::Float(1.0f)) * SIMD in EmitImageWrite()
1193 …packed[0] = SIMD::Int(Round(Min(Max(texel.Float(0), SIMD::Float(-1.0f)), SIMD::Float(1.0f)) * SIMD in EmitImageWrite()
1198 …packed[0] = SIMD::UInt(texel.UInt(0) & SIMD::UInt(0xFF)) | (SIMD::UInt(texel.UInt(1) & SIMD::UInt(… in EmitImageWrite()
1203 packed[0] = SIMD::UInt(texel.UInt(0) & SIMD::UInt(0xFFFF)); in EmitImageWrite()
1208 packed[0] = SIMD::UInt(texel.UInt(0) & SIMD::UInt(0xFF)); in EmitImageWrite()
1212 packed[0] = (SIMD::UInt(texel.UInt(0) & SIMD::UInt(0x3FF))) | in EmitImageWrite()
1213 (SIMD::UInt(texel.UInt(1) & SIMD::UInt(0x3FF)) << 10) | in EmitImageWrite()
1214 (SIMD::UInt(texel.UInt(2) & SIMD::UInt(0x3FF)) << 20) | in EmitImageWrite()
1215 (SIMD::UInt(texel.UInt(3) & SIMD::UInt(0x3)) << 30); in EmitImageWrite()
1241 SIMD::Int offsets = texelPtr.offsets(); in EmitImageWrite()
1242 SIMD::Int mask = state->activeLaneMask() & texelPtr.isInBounds(2, robustness); in EmitImageWrite()
1244 for(int i = 0; i < SIMD::Width; i++) in EmitImageWrite()
1254 SIMD::Int offsets = texelPtr.offsets(); in EmitImageWrite()
1255 SIMD::Int mask = state->activeLaneMask() & texelPtr.isInBounds(1, robustness); in EmitImageWrite()
1257 for(int i = 0; i < SIMD::Width; i++) in EmitImageWrite()