Lines Matching refs:EXPECT

36         if (EXPECT(create_func(dev.handle(), __VA_ARGS__, NULL, &handle) == VK_SUCCESS)) \
46 #define EXPECT(expr) ((expr) ? true : expect_failure(STRINGIFY(expr), __FILE__, __LINE__, __FUNCTIO… macro
297 if (EXPECT(vkCreateDevice(phy_.handle(), &info, NULL, &dev) == VK_SUCCESS)) Handle::init(dev); in init()
308 EXPECT(queue_node_count >= 1); in init_queues()
344 EXPECT(!queues_[GRAPHICS].empty() || !queues_[COMPUTE].empty()); in init_queues()
367 EXPECT(!formats_.empty()); in init_formats()
382 void Device::wait() { EXPECT(vkDeviceWaitIdle(handle()) == VK_SUCCESS); } in wait()
387 EXPECT(err == VK_SUCCESS || err == VK_TIMEOUT); in wait()
411 if (expect_success) EXPECT(result == VK_SUCCESS); in submit()
426 EXPECT(result == VK_SUCCESS); in wait()
440 …if (!EXPECT(vkMapMemory(device(), handle(), 0, VK_WHOLE_SIZE, flags, &data) == VK_SUCCESS)) data =… in map()
447 …if (!EXPECT(vkMapMemory(device(), handle(), 0, VK_WHOLE_SIZE, flags, &data) == VK_SUCCESS)) data =… in map()
465 EXPECT(dev.phy().set_memory_type(reqs.memoryTypeBits, &info, mem_props)); in get_resource_alloc_info()
488 void Event::set() { EXPECT(vkSetEvent(device(), handle()) == VK_SUCCESS); } in set()
490 void Event::reset() { EXPECT(vkResetEvent(device(), handle()) == VK_SUCCESS); } in reset()
500 EXPECT(err == VK_SUCCESS || err == VK_NOT_READY); in results()
528 EXPECT(vkBindBufferMemory(device(), handle(), mem.handle(), mem_offset) == VK_SUCCESS); in bind_memory()
575 EXPECT(vkBindImageMemory(device(), handle(), mem.handle(), mem_offset) == VK_SUCCESS); in bind_memory()
644 EXPECT(err == VK_SUCCESS); in init_try()
698 void DescriptorPool::reset() { EXPECT(vkResetDescriptorPool(device(), handle(), 0) == VK_SUCCESS); } in reset()
713 EXPECT(err == VK_SUCCESS); in alloc_sets()
738EXPECT(vkFreeDescriptorSets(device(), containing_pool_->GetObj(), 1, sets) == VK_SUCCESS); in ~DescriptorSet()
762 if (EXPECT(vkAllocateCommandBuffers(dev.handle(), &info, &cmd) == VK_SUCCESS)) { in init()
769 void CommandBuffer::begin(const VkCommandBufferBeginInfo *info) { EXPECT(vkBeginCommandBuffer(handl… in begin()
789 void CommandBuffer::end() { EXPECT(vkEndCommandBuffer(handle()) == VK_SUCCESS); } in end()
791 void CommandBuffer::reset(VkCommandBufferResetFlags flags) { EXPECT(vkResetCommandBuffer(handle(), … in reset()