Lines Matching defs:surface

51 // When ICD doesn't support the surface creation, the loader should handle it
65 VkSurfaceKHR surface{VK_NULL_HANDLE};
67 ASSERT_EQ(VK_SUCCESS, env.vulkan_functions.vkCreateWin32SurfaceKHR(inst, &surf_create_info, nullptr, &surface));
68 ASSERT_TRUE(surface != VK_NULL_HANDLE);
70 env.vulkan_functions.vkDestroySurfaceKHR(inst, surface, nullptr);
73 // When ICD does support the surface creation, the loader should delegat handle it to the ICD
87 VkSurfaceKHR surface{VK_NULL_HANDLE};
89 ASSERT_EQ(VK_SUCCESS, env.vulkan_functions.vkCreateWin32SurfaceKHR(inst, &surf_create_info, nullptr, &surface));
90 ASSERT_TRUE(surface != VK_NULL_HANDLE);
92 env.vulkan_functions.vkDestroySurfaceKHR(inst, surface, nullptr);
115 VkSurfaceKHR surface{VK_NULL_HANDLE};
117 ASSERT_EQ(VK_SUCCESS, env.vulkan_functions.vkCreateWin32SurfaceKHR(instance.inst, &surf_create_info, nullptr, &surface));
118 ASSERT_TRUE(surface != VK_NULL_HANDLE);
120 env.vulkan_functions.vkDestroySurfaceKHR(instance.inst, surface, nullptr);
193 VkSurfaceKHR surface{VK_NULL_HANDLE};
195 ASSERT_EQ(VK_SUCCESS, env.vulkan_functions.vkCreateWin32SurfaceKHR(instance.inst, &surf_create_info, nullptr, &surface));
196 ASSERT_TRUE(surface != VK_NULL_HANDLE);
205 ASSERT_EQ(VK_SUCCESS, env.vulkan_functions.vkGetPhysicalDeviceSurfaceSupportKHR(phys_devs[pd], 0, surface, &supported));
208 env.vulkan_functions.vkDestroySurfaceKHR(instance.inst, surface, nullptr);
231 // When ICD doesn't support the surface creation, the loader should handle it
247 VkSurfaceKHR surface{VK_NULL_HANDLE};
248 ASSERT_EQ(VK_SUCCESS, env.vulkan_functions.vkCreateXcbSurfaceKHR(inst, &xcb_createInfo, nullptr, &surface));
249 ASSERT_TRUE(surface != VK_NULL_HANDLE);
251 env.vulkan_functions.vkDestroySurfaceKHR(inst, surface, nullptr);
254 // When ICD does support the surface creation, the loader should delegat handle it to the ICD
270 VkSurfaceKHR surface{VK_NULL_HANDLE};
271 ASSERT_EQ(VK_SUCCESS, env.vulkan_functions.vkCreateXcbSurfaceKHR(inst, &xcb_createInfo, nullptr, &surface));
272 ASSERT_TRUE(surface != VK_NULL_HANDLE);
274 env.vulkan_functions.vkDestroySurfaceKHR(inst, surface, nullptr);
299 VkSurfaceKHR surface{VK_NULL_HANDLE};
300 ASSERT_EQ(VK_SUCCESS, env.vulkan_functions.vkCreateXcbSurfaceKHR(instance.inst, &xcb_createInfo, nullptr, &surface));
301 ASSERT_TRUE(surface != VK_NULL_HANDLE);
303 env.vulkan_functions.vkDestroySurfaceKHR(instance.inst, surface, nullptr);
376 VkSurfaceKHR surface{VK_NULL_HANDLE};
378 ASSERT_EQ(VK_SUCCESS, env.vulkan_functions.vkCreateXcbSurfaceKHR(instance.inst, &xcb_createInfo, nullptr, &surface));
379 ASSERT_TRUE(surface != VK_NULL_HANDLE);
388 ASSERT_EQ(VK_SUCCESS, env.vulkan_functions.vkGetPhysicalDeviceSurfaceSupportKHR(phys_devs[pd], 0, surface, &supported));
391 env.vulkan_functions.vkDestroySurfaceKHR(instance.inst, surface, nullptr);
414 // When ICD doesn't support the surface creation, the loader should handle it
430 VkSurfaceKHR surface;
431 ASSERT_EQ(VK_SUCCESS, env.vulkan_functions.vkCreateXlibSurfaceKHR(inst, &createInfo, nullptr, &surface));
432 ASSERT_TRUE(surface != VK_NULL_HANDLE);
434 env.vulkan_functions.vkDestroySurfaceKHR(inst, surface, nullptr);
437 // When ICD does support the surface creation, the loader should delegat handle it to the ICD
453 VkSurfaceKHR surface;
454 ASSERT_EQ(VK_SUCCESS, env.vulkan_functions.vkCreateXlibSurfaceKHR(inst, &createInfo, nullptr, &surface));
455 ASSERT_TRUE(surface != VK_NULL_HANDLE);
457 env.vulkan_functions.vkDestroySurfaceKHR(inst, surface, nullptr);
482 VkSurfaceKHR surface;
483 ASSERT_EQ(VK_SUCCESS, env.vulkan_functions.vkCreateXlibSurfaceKHR(instance.inst, &createInfo, nullptr, &surface));
484 ASSERT_TRUE(surface != VK_NULL_HANDLE);
486 env.vulkan_functions.vkDestroySurfaceKHR(instance.inst, surface, nullptr);
559 VkSurfaceKHR surface{VK_NULL_HANDLE};
561 ASSERT_EQ(VK_SUCCESS, env.vulkan_functions.vkCreateXlibSurfaceKHR(instance.inst, &createInfo, nullptr, &surface));
562 ASSERT_TRUE(surface != VK_NULL_HANDLE);
571 ASSERT_EQ(VK_SUCCESS, env.vulkan_functions.vkGetPhysicalDeviceSurfaceSupportKHR(phys_devs[pd], 0, surface, &supported));
574 env.vulkan_functions.vkDestroySurfaceKHR(instance.inst, surface, nullptr);
597 // When ICD doesn't support the surface creation, the loader should handle it
613 VkSurfaceKHR surface;
614 ASSERT_EQ(VK_SUCCESS, env.vulkan_functions.vkCreateWaylandSurfaceKHR(inst, &createInfo, nullptr, &surface));
615 ASSERT_TRUE(surface != VK_NULL_HANDLE);
617 env.vulkan_functions.vkDestroySurfaceKHR(inst, surface, nullptr);
620 // When ICD does support the surface creation, the loader should delegat handle it to the ICD
636 VkSurfaceKHR surface;
637 ASSERT_EQ(VK_SUCCESS, env.vulkan_functions.vkCreateWaylandSurfaceKHR(inst, &createInfo, nullptr, &surface));
638 ASSERT_TRUE(surface != VK_NULL_HANDLE);
640 env.vulkan_functions.vkDestroySurfaceKHR(inst, surface, nullptr);
665 VkSurfaceKHR surface;
666 ASSERT_EQ(VK_SUCCESS, env.vulkan_functions.vkCreateWaylandSurfaceKHR(instance.inst, &createInfo, nullptr, &surface));
667 ASSERT_TRUE(surface != VK_NULL_HANDLE);
669 env.vulkan_functions.vkDestroySurfaceKHR(instance.inst, surface, nullptr);
742 VkSurfaceKHR surface{VK_NULL_HANDLE};
744 ASSERT_EQ(VK_SUCCESS, env.vulkan_functions.vkCreateWaylandSurfaceKHR(instance.inst, &createInfo, nullptr, &surface));
745 ASSERT_TRUE(surface != VK_NULL_HANDLE);
754 ASSERT_EQ(VK_SUCCESS, env.vulkan_functions.vkGetPhysicalDeviceSurfaceSupportKHR(phys_devs[pd], 0, surface, &supported));
757 env.vulkan_functions.vkDestroySurfaceKHR(instance.inst, surface, nullptr);
771 VkSurfaceKHR surface{};
772 ASSERT_EQ(VK_ERROR_EXTENSION_NOT_PRESENT, create_surface(inst, surface));
784 VkSurfaceKHR surface{};
785 ASSERT_EQ(VK_SUCCESS, create_surface(inst, surface));
796 swap_create_info.surface = surface;
821 swap_create_info.surface = surface;
840 { // forget to set the surface
851 env.vulkan_functions.vkDestroySurfaceKHR(inst.inst, surface, nullptr);