MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-ValidationLayers / TEST_F

Function TEST_F

tests/unit/render_pass.cpp:42–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42TEST_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
56TEST_F(NegativeRenderPass, AttachmentReadOnlyButCleared) {
57 AddRequiredExtensions(VK_KHR_GET_PHYSICAL_DEVICE_PROPERTIES_2_EXTENSION_NAME);

Callers

nothing calls this directly

Calls 15

size32Function · 0.85
CmdBeginCustomResolveEXTFunction · 0.85
CmdBeginRenderPassFunction · 0.85
CmdBeginRenderPass2KHRFunction · 0.85
DestroyRenderPassFunction · 0.85
CmdExecuteCommandsFunction · 0.85

Tested by

no test coverage detected