14TEST(MockVulkanContextTest, IsThreadSafe) {
21 std::thread thread1([&context]() {
22 auto const pool = context->GetCommandPoolRecycler()->Get();
26 std::thread thread2([&context]() {
27 auto const pool = context->GetCommandPoolRecycler()->Get();
45TEST(MockVulkanContextTest, MockedFenceReportsStatus) {
48 auto const device = context->GetDevice();
52 EXPECT_EQ(vk::Result::eNotReady,
device.getFenceStatus(fence.get()));
55 EXPECT_EQ(vk::Result::eSuccess,
device.getFenceStatus(*fence));
std::shared_ptr< ContextVK > Build()
Create a Vulkan context with Vulkan functions mocked. The caller is given a chance to tinker on the s...