Lines Matching defs:image
371 bool compareGreenImage (tcu::TestLog& log, const char* name, const char* description, const tcu::ConstPixelBufferAccess& image)
373 tcu::TextureLevel greenImage(image.getFormat(), image.getWidth(), image.getHeight());
375 return tcu::intThresholdCompare(log, name, description, greenImage.getAccess(), image, tcu::UVec4(2u), tcu::COMPARE_LOG_RESULT);
408 int countUniqueColors (const tcu::ConstPixelBufferAccess& image)
412 for (int y = 0; y < image.getHeight(); ++y)
413 for (int x = 0; x < image.getWidth(); ++x)
415 colors.insert(image.getPixel(x, y));
746 deUint32 addAttachment (const VkImage image,
762 m_images.push_back(image);
994 const VkImage image,
1014 image, // VkImage image;
1024 const VkImage image,
1044 image, // VkImage image;
1068 // Resolve image -> host buffer
1592 *m_colorImage, // VkImage image,
1606 *m_resolveImage, // VkImage image
1792 const tcu::ConstPixelBufferAccess image (tcu::ConstPixelBufferAccess(mapVkFormat(m_colorFormat), tcu::IVec3(m_renderSize.x(), m_renderSize.y(), 1), m_colorBufferAlloc->getHostPtr()));
1794 return compareGreenImage(m_context.getTestContext().getLog(), "resolve0", "Resolved test image", image);
1830 const tcu::ConstPixelBufferAccess image (tcu::ConstPixelBufferAccess(mapVkFormat(m_colorFormat), tcu::IVec3(m_renderSize.x(), m_renderSize.y(), 1), m_colorBufferAlloc->getHostPtr()));
1832 return compareGreenImage(m_context.getTestContext().getLog(), "resolve0", "Resolved test image", image);
1885 TEST_OPTION_GENERAL_LAYOUT_BIT = 1u << 3, //!< Transition the image to general layout at some point in rendering
1886 TEST_OPTION_WAIT_EVENTS_BIT = 1u << 4, //!< Use image memory barriers with vkCmdWaitEvents rather than vkCmdPipelineBarrier
1908 //! What type of image will be verified with custom samples
1911 TEST_IMAGE_ASPECT_COLOR = 0u, //!< Color image
1912 TEST_IMAGE_ASPECT_DEPTH, //!< Depth aspect of an image (can be mixed format)
1913 TEST_IMAGE_ASPECT_STENCIL, //!< Stencil aspect of an image (can be mixed format)
2169 // Some test cases will not clear the left hand image, so we can use it directly
2174 // Render second pass reference image with the first pattern
2201 const tcu::ConstPixelBufferAccess image (tcu::ConstPixelBufferAccess(mapVkFormat(m_colorFormat), tcu::IVec3(m_renderSize.x(), m_renderSize.y(), 1), m_colorBufferAlloc->getHostPtr()));
2205 << tcu::TestLog::Image("resolve0", "resolve0", image)
2213 // Count colors in each image half separately, each half may have its own background color
2217 const int numActualColorsLeft = countUniqueColors(tcu::getSubregion(image, 0, 0, m_renderSize.x()/2, m_renderSize.y()));
2218 const int numActualColorsRight = countUniqueColors(tcu::getSubregion(image, m_renderSize.x()/2, 0, m_renderSize.x()/2, m_renderSize.y()));
2231 return tcu::TestStatus::fail("Resolved image has incorrect pixels");
2237 const bool match = intThresholdCompare(tcu::getSubregion(image, 0, 0, m_renderSize.x()/2, m_renderSize.y()),
2238 tcu::getSubregion(image, m_renderSize.x()/2, 0, m_renderSize.x()/2, m_renderSize.y()),
2241 return tcu::TestStatus::fail("Multisample pattern should be identical in both image halves");
2243 return tcu::TestStatus::fail("Multisample pattern doesn't seem to change between left and right image halves");
2247 // Compare the right half with the previously rendered reference image -- patterns should be different
2249 tcu::getSubregion(image, m_renderSize.x()/2, 0, m_renderSize.x()/2, m_renderSize.y()),
2270 //! Draw the second pass image, but with sample pattern from the first pass -- used to verify that the pattern is different
2289 *m_colorImage, // VkImage image
2303 *m_resolveImage, // VkImage image
2322 *m_depthStencilImage, // VkImage image
2426 *m_colorImage, // VkImage image
2444 *m_depthStencilImage, // VkImage image
2469 *m_colorImage, // VkImage image
2483 *m_resolveImage, // VkImage image
2502 *m_depthStencilImage, // VkImage image
2720 // Resolve image -> host buffer
2832 *m_colorImage, // VkImage image
2846 *m_resolveImage, // VkImage image
2865 *m_depthStencilImage, // VkImage image
2957 // Resolve image -> host buffer
3003 *m_colorImage, // VkImage image
3017 *m_resolveImage, // VkImage image
3036 *m_depthStencilImage, // VkImage image
3109 // Resolve image -> host buffer
3251 // If the sample pattern is changed, the D/S image must be cleared or the result is undefined
3256 // We are using events to change image layout and this is only allowed outside a render pass
3260 // Can't change image layout inside a subpass