From 238984e07efca2ceb8ecb0c78c80d91a2ad0ce21 Mon Sep 17 00:00:00 2001 From: Zhang Yufeng <759094438@qq.com> Date: Wed, 1 Jun 2022 12:05:43 +0800 Subject: [PATCH] FIX bug : fix macos validation layer error bug (#209) * fix macos validation layer error bug --- .../runtime/core/meta/reflection/reflection.h | 13 ++++++------- .../function/render/rhi/vulkan/vulkan_rhi.cpp | 4 ++++ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/engine/source/runtime/core/meta/reflection/reflection.h b/engine/source/runtime/core/meta/reflection/reflection.h index 4203b9e04..bc61c2cda 100644 --- a/engine/source/runtime/core/meta/reflection/reflection.h +++ b/engine/source/runtime/core/meta/reflection/reflection.h @@ -106,7 +106,6 @@ namespace Pilot { friend class FieldAccessor; friend class ArrayAccessor; - ; friend class TypeMetaRegisterinterface; public: @@ -175,13 +174,13 @@ namespace Pilot private: FieldFunctionTuple* m_functions; - const char* m_field_name; - const char* m_field_type_name; + const char* m_field_name; + const char* m_field_type_name; }; /** - * Function reflection is not implemented, so use this as an std::vector accessor - */ + * Function reflection is not implemented, so use this as an std::vector accessor + */ class ArrayAccessor { friend class TypeMeta; @@ -202,8 +201,8 @@ namespace Pilot private: ArrayFunctionTuple* m_func; - const char* m_array_type_name; - const char* m_element_type_name; + const char* m_array_type_name; + const char* m_element_type_name; }; class ReflectionInstance diff --git a/engine/source/runtime/function/render/rhi/vulkan/vulkan_rhi.cpp b/engine/source/runtime/function/render/rhi/vulkan/vulkan_rhi.cpp index 943d2e84d..cba6c27e0 100644 --- a/engine/source/runtime/function/render/rhi/vulkan/vulkan_rhi.cpp +++ b/engine/source/runtime/function/render/rhi/vulkan/vulkan_rhi.cpp @@ -375,6 +375,10 @@ namespace Pilot { extensions.push_back(VK_EXT_DEBUG_UTILS_EXTENSION_NAME); } + +#if defined(__MACH__) + extensions.push_back(VK_KHR_GET_PHYSICAL_DEVICE_PROPERTIES_2_EXTENSION_NAME); +#endif return extensions; }