Lines Matching refs:VK_ASSERT
115 #define VK_ASSERT(x) ASSERT_EQ(x, VK_SUCCESS) macro
146 VK_ASSERT(driver.vkCreateInstance(&createInfo, nullptr, &instance)); in test()
151 VK_ASSERT(Device::CreateComputeDevice(&driver, instance, device)); in test()
181 VK_ASSERT(device->AllocateMemory(buffersSize, in test()
186 VK_ASSERT(device->MapMemory(memory, 0, buffersSize, 0, (void **)&buffers)); in test()
202 VK_ASSERT(device->CreateStorageBuffer(memory, in test()
208 VK_ASSERT(device->CreateStorageBuffer(memory, in test()
214 VK_ASSERT(device->CreateShaderModule(code, &shaderModule)); in test()
234 VK_ASSERT(device->CreateDescriptorSetLayout(descriptorSetLayoutBindings, &descriptorSetLayout)); in test()
237 VK_ASSERT(device->CreatePipelineLayout(descriptorSetLayout, &pipelineLayout)); in test()
240 VK_ASSERT(device->CreateComputePipeline(shaderModule, pipelineLayout, &pipeline)); in test()
243 VK_ASSERT(device->CreateStorageBufferDescriptorPool(2, &descriptorPool)); in test()
246 VK_ASSERT(device->AllocateDescriptorSet(descriptorPool, descriptorSetLayout, &descriptorSet)); in test()
263 VK_ASSERT(device->CreateCommandPool(&commandPool)); in test()
266 VK_ASSERT(device->AllocateCommandBuffer(commandPool, &commandBuffer)); in test()
268 VK_ASSERT(device->BeginCommandBuffer(VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT, commandBuffer)); in test()
277 VK_ASSERT(driver.vkEndCommandBuffer(commandBuffer)); in test()
279 VK_ASSERT(device->QueueSubmitAndWait(commandBuffer)); in test()
281 VK_ASSERT(device->MapMemory(memory, 0, buffersSize, 0, (void **)&buffers)); in test()