[VulkanHpp] changed to "VK_LAYER_KHRONOS_validation" as validation layer (#324)

+ fixed one issue caught by that layer in InputAttachment.
This commit is contained in:
Andreas Süßenbach
2019-04-30 17:03:26 +02:00
committed by Markus Tavenrath
parent 1a7779e75b
commit 39d204839d
3 changed files with 5 additions and 16 deletions

View File

@@ -159,7 +159,7 @@ int main(int /*argc*/, char ** /*argv*/)
vk::UniqueSemaphore imageAcquiredSemaphore = device->createSemaphoreUnique(vk::SemaphoreCreateInfo());
vk::ResultValue<uint32_t> result = device->acquireNextImage2KHR(vk::AcquireNextImageInfoKHR(swapChainData.swapChain.get(), UINT64_MAX, imageAcquiredSemaphore.get()));
vk::ResultValue<uint32_t> result = device->acquireNextImage2KHR(vk::AcquireNextImageInfoKHR(swapChainData.swapChain.get(), UINT64_MAX, imageAcquiredSemaphore.get(), {}, 1));
assert(result.result == vk::Result::eSuccess);
uint32_t currentBuffer = result.value;