Lines Matching defs:attachment

173 	VkFormat				floatColor1Format;			//!< Color attachment format
174 VkFormat floatColor2Format; //!< Color attachment format
175 VkFormat intColorFormat; //!< Color attachment format
176 VkFormat depthStencilFormat; //!< D/S attachment format. Will test both aspects if it's a mixed format
566 // Disable blend for the integer attachment unconditionally
731 log << tcu::TestLog::Image("Color attachment 1", "Color attachment 1", testImageData[0]);
733 log << tcu::TestLog::Image("Color attachment 2", "Color attachment 2", testImageData[1]);
735 log << tcu::TestLog::Image("Color attachment 3", "Color attachment 3", testImageData[2]);
737 log << tcu::TestLog::Image("Depth attachment", "Depth attachment", params.depthStencilFormat == VK_FORMAT_D24_UNORM_S8_UINT ? testImageDataD24 : testImageData[3]);
739 log << tcu::TestLog::Image("Stencil attachment", "Stencil attachment", testImageData[4]);
774 log << tcu::TestLog::ImageSet("attachment error mask", "attachment error mask");
776 log << tcu::TestLog::Image("ErrorMask color attachment 1", "Error mask color attachment 1", tcu::getSubregion(verifyImageData, 0, 0, 0, wd.framebufferSize.x(), wd.framebufferSize.y(), 1));
778 log << tcu::TestLog::Image("ErrorMask color attachment 2", "Error mask color attachment 2", tcu::getSubregion(verifyImageData, 0, 0, 1, wd.framebufferSize.x(), wd.framebufferSize.y(), 1));
780 log << tcu::TestLog::Image("ErrorMask color attachment 3", "Error mask color attachment 3", tcu::getSubregion(verifyImageData, 0, 0, 2, wd.framebufferSize.x(), wd.framebufferSize.y(), 1));
782 log << tcu::TestLog::Image("ErrorMask depth attachment", "Error mask depth attachment", tcu::getSubregion(verifyImageData, 0, 0, 3, wd.framebufferSize.x(), wd.framebufferSize.y(), 1));
784 log << tcu::TestLog::Image("ErrorMask stencil attachment", "Error mask stencil attachment", tcu::getSubregion(verifyImageData, 0, 0, 4, wd.framebufferSize.x(), wd.framebufferSize.y(), 1));
791 const std::string& attachment)
798 log << tcu::TestLog::Message << "Verification passed for " << attachment << tcu::TestLog::EndMessage;
800 log << tcu::TestLog::Message << "Verification failed for " << attachment << " for " << (expectedPixelCount - verifiedPixelCount) << " pixel(s)" << tcu::TestLog::EndMessage;
933 // The attachments are either cleared already or should be cleared now. If an attachment was used in a previous render pass,
1101 // The attachments are either cleared already or should be cleared now. If an attachment was used in a previous render pass,
1420 VK_ATTACHMENT_UNUSED, // uint32_t attachment;
1426 void initializeAttachmentReference(VkAttachmentReference2& reference, deUint32 attachment, const VkFormat depthStencilFormat, const bool isInputAttachment)
1430 reference.attachment = attachment;
1441 bool isInAttachmentReferences(const std::vector<VkAttachmentReference2>& references, const deInt32 attachment)
1444 if (reference.attachment == static_cast<deUint32>(attachment))
1464 // Maximum 4 attachment references for color and 1 for depth
2409 if (!checkAndReportError(context, results->color1Verification, totalPixels, "color attachment 1"))
2412 errorMsg += "color attachment 1";
2418 if (!checkAndReportError(context, results->color2Verification, totalPixels, "color attachment 2"))
2421 errorMsg += "color attachment 2";
2427 if (!checkAndReportError(context, results->color3Verification, totalPixels, "color attachment 3"))
2430 errorMsg += "color attachment 3";
2436 if (!checkAndReportError(context, results->depthVerification, totalPixels, "depth attachment"))
2439 errorMsg += "depth attachment";
2445 if (!checkAndReportError(context, results->stencilVerification, totalPixels, "stencil attachment"))
2448 errorMsg += "stencil attachment";
2468 allOk = checkAndReportError(context, results->color1Verification, totalPixels, "color attachment 1 (outside render area)") && allOk;
2470 allOk = checkAndReportError(context, results->color2Verification, totalPixels, "color attachment 2 (outside render area)") && allOk;
2472 allOk = checkAndReportError(context, results->color3Verification, totalPixels, "color attachment 3 (outside render area)") && allOk;
2474 allOk = checkAndReportError(context, results->depthVerification, totalPixels, "depth attachment (outside render area)") && allOk;
2476 allOk = checkAndReportError(context, results->stencilVerification, totalPixels, "stencil attachment (outside render area)") && allOk;
2713 // for the int attachment where v = (s+1)*(s+1)*10.
2776 // When rendering is done to every sample and the attachment is resolved, we expect:
2790 // - For the depth attachment, either 1 or 1-1/16 based on whether MAX or SAMPLE_ZERO resolve modes are selected respectively.
2791 // - For the stencil attachment, expect the clear value + 1.
3975 // Include any attachment that is not used in any subpass just to make all attachments valid.
4090 // Make every multisampled attachment resolve in the last pass it's used.
4525 VK_ATTACHMENT_UNUSED, // uint32_t attachment;
4529 // Color attachment 1 and depth/stencil attachment are used as input attachments in subpass 1.
4634 // First draw call outputs to color attachment 1 and depth/stencil. It doesn't blend with clear for simplicity of the verification code.
4647 // Next subpass initializes color attachments 2 and 3 from color attachment 1 and depth/stencil, then issues a draw call that modifies those attachments.
4870 // Data from color attachment 1 is replicated in color attachment 2. Data from the depth/stencil attachment is replicated in the red and green
4871 // channels of color attachment 3. Depth is multiplied by 10000 and interpolated along x and stencil by 100 and interpolated along y. This makes
5037 rootGroup->getTestContext(), getFormatCaseName(color1Format, color2Format, color3Format, depthStencilFormat).c_str(), "Combination of framebuffer attachment formats"));
5096 rootGroup->getTestContext(), getFormatCaseName(color1Format, color2Format, color3Format, depthStencilFormat).c_str(), "Combination of framebuffer attachment formats"));
5160 "Combination of framebuffer attachment formats"));
5224 "Combination of framebuffer attachment formats"));
5273 // Test 5: Tests multisampled rendering followed by use as input attachment.
5277 MovePtr<tcu::TestCaseGroup> group (new tcu::TestCaseGroup(rootGroup->getTestContext(), "input_attachments", "Tests that input attachment interaction with multisampled rendering works"));
5287 rootGroup->getTestContext(), getFormatCaseName(color1Format, color2Format, color3Format, depthStencilFormat).c_str(), "Combination of framebuffer attachment formats"));
5409 // Combination of framebuffer attachment formats