Lines Matching defs:dst
809 static void readPixelsRGBAInteger32 (const PixelBufferAccess& dst, int originX, int originY, glu::CallLogWrapper& glLog)
811 DE_ASSERT(dst.getDepth() == 1);
813 if (isFormatTypeUnsignedInteger(dst.getFormat().type))
815 vector<UVec4> data(dst.getWidth()*dst.getHeight());
817 glLog.glReadPixels(originX, originY, dst.getWidth(), dst.getHeight(), GL_RGBA_INTEGER, GL_UNSIGNED_INT, &data[0]);
819 for (int y = 0; y < dst.getHeight(); y++)
820 for (int x = 0; x < dst.getWidth(); x++)
821 dst.setPixel(data[y*dst.getWidth() + x], x, y);
823 else if (isFormatTypeSignedInteger(dst.getFormat().type))
825 vector<IVec4> data(dst.getWidth()*dst.getHeight());
827 glLog.glReadPixels(originX, originY, dst.getWidth(), dst.getHeight(), GL_RGBA_INTEGER, GL_INT, &data[0]);
829 for (int y = 0; y < dst.getHeight(); y++)
830 for (int x = 0; x < dst.getWidth(); x++)
831 dst.setPixel(data[y*dst.getWidth() + x], x, y);