| 40 | } |
| 41 | |
| 42 | TEST_F(NegativeRenderPass, AttachmentIndexOutOfRange) { |
| 43 | SetTargetApiVersion(VK_API_VERSION_1_2); |
| 44 | AddRequiredExtensions(VK_KHR_CREATE_RENDERPASS_2_EXTENSION_NAME); |
| 45 | RETURN_IF_SKIP(Init()); |
| 46 | |
| 47 | // There are no attachments, but refer to attachment 0. |
| 48 | RenderPassSingleSubpass rp(*this); |
| 49 | rp.AddColorAttachment(0, VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL); |
| 50 | |
| 51 | // "... must be less than the total number of attachments ..." |
| 52 | CreateRenderPassTest(rp.GetCreateInfo(), true, "VUID-VkRenderPassCreateInfo-attachment-00834", |
| 53 | "VUID-VkRenderPassCreateInfo2-attachment-03051"); |
| 54 | } |
| 55 | |
| 56 | TEST_F(NegativeRenderPass, AttachmentReadOnlyButCleared) { |
| 57 | AddRequiredExtensions(VK_KHR_GET_PHYSICAL_DEVICE_PROPERTIES_2_EXTENSION_NAME); |
nothing calls this directly
no test coverage detected