Lines Matching refs:resultImage
673 const auto resultImage = m_colorTargetImage->readSurface(queue, m_context.getDefaultAllocator(), VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, { 0, 0, 0 }, WIDTH, HEIGHT, VK_IMAGE_ASPECT_COLOR_BIT);
679 for(int z = 0; z < resultImage.getDepth(); ++z)
680 for(int y = 0; y < resultImage.getHeight(); ++y)
681 for(int x = 0; x < resultImage.getWidth(); ++x)
683 const Vec4 difference = m_params.expectedColor - resultImage.getPixel(x,y,z);
687 msg << "Color value mismatch, expected: " << m_params.expectedColor << ", got: " << resultImage.getPixel(x,y,z) << " at " << "(" << x << ", " << y << ", " << z << ")";
695 const auto resultImage = m_depthTargetImage->readSurface(queue, m_context.getDefaultAllocator(), VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, { 0, 0, 0 }, WIDTH, HEIGHT, VK_IMAGE_ASPECT_DEPTH_BIT);
701 for(int z = 0; z < resultImage.getDepth(); ++z)
702 for(int y = 0; y < resultImage.getHeight(); ++y)
703 for(int x = 0; x < resultImage.getWidth(); ++x)
705 const float difference = m_params.expectedDepth - resultImage.getPixDepth(x,y,z);
709 msg << "Depth value mismatch, expected: " << m_params.expectedDepth << ", got: " << resultImage.getPixDepth(x,y,z) << " at " << "(" << x << ", " << y << ", " << z << ")";