Replace VK_VERSION_1_1 with VK_API_VERSION_1_1

VkApplicationInfo::apiVersion must be encoded as major, minor and patch version of the Vulkan API Specification: https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#extendingvulkan-coreversions-versionnumbers.
This commit is contained in:
rumblehhh 2021-03-16 12:58:02 +00:00 committed by GitHub
parent a2a604be47
commit 69b92f19ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,7 +11,7 @@
VulkanExample::VulkanExample() : VulkanExampleBase(ENABLE_VALIDATION) VulkanExample::VulkanExample() : VulkanExampleBase(ENABLE_VALIDATION)
{ {
title = "Variable rate shading"; title = "Variable rate shading";
apiVersion = VK_VERSION_1_1; apiVersion = VK_API_VERSION_1_1;
camera.type = Camera::CameraType::firstperson; camera.type = Camera::CameraType::firstperson;
camera.flipY = true; camera.flipY = true;
camera.setPosition(glm::vec3(0.0f, 1.0f, 0.0f)); camera.setPosition(glm::vec3(0.0f, 1.0f, 0.0f));