From 51d6844c38a245ebdb8597438d1051d58a964e14 Mon Sep 17 00:00:00 2001 From: Nigel Date: Wed, 24 Nov 2021 17:15:41 +0100 Subject: [PATCH] Forgot an important part of the VkDeviceCreateInfo structure --- Hello_triangle/Makefile | 2 +- Hello_triangle/main.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Hello_triangle/Makefile b/Hello_triangle/Makefile index 2e84e5f..9917694 100644 --- a/Hello_triangle/Makefile +++ b/Hello_triangle/Makefile @@ -12,4 +12,4 @@ test: VulkanTest clean: rm -f VulkanTest # For information on Makefile's check -# https://makefiletutorial.com +# https://makefiletutorial.com \ No newline at end of file diff --git a/Hello_triangle/main.cpp b/Hello_triangle/main.cpp index 8513e1d..4112365 100644 --- a/Hello_triangle/main.cpp +++ b/Hello_triangle/main.cpp @@ -81,6 +81,7 @@ class HelloTriangleApplication{ VkDeviceCreateInfo createInfo{}; createInfo.sType = VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO; + createInfo.pQueueCreateInfos = &queueCreateInfo; createInfo.queueCreateInfoCount = 1; createInfo.pEnabledFeatures = &deviceFeatures;