From 0b058c3729dfbbb3d451a518aaa0f3c496d513f5 Mon Sep 17 00:00:00 2001 From: Proton Date: Mon, 25 Jul 2022 15:39:22 +0800 Subject: [PATCH] force vk 1.0 --- taichi/rhi/vulkan/vulkan_device_creator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/taichi/rhi/vulkan/vulkan_device_creator.cpp b/taichi/rhi/vulkan/vulkan_device_creator.cpp index 6f48d0ea4842a0..7ef4347f594438 100644 --- a/taichi/rhi/vulkan/vulkan_device_creator.cpp +++ b/taichi/rhi/vulkan/vulkan_device_creator.cpp @@ -10,6 +10,7 @@ #include "taichi/rhi/vulkan/vulkan_loader.h" #include "taichi/rhi/vulkan/vulkan_device.h" #include "taichi/common/logging.h" +#include "vulkan/vulkan_core.h" namespace taichi { namespace lang { @@ -252,7 +253,7 @@ void VulkanDeviceCreator::create_instance(bool manual_create) { app_info.applicationVersion = VK_MAKE_VERSION(1, 0, 0); app_info.pEngineName = "No Engine"; app_info.engineVersion = VK_MAKE_VERSION(1, 0, 0); - app_info.apiVersion = VulkanEnvSettings::kApiVersion(); + app_info.apiVersion = VK_API_VERSION_1_0; VkInstanceCreateInfo create_info{}; create_info.sType = VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO;