Skip to content

Commit

Permalink
FIX bug : fix macos validation layer error bug (#209)
Browse files Browse the repository at this point in the history
* fix macos validation layer error bug
  • Loading branch information
rocketman123456 authored Jun 1, 2022
1 parent 7e9f4f2 commit 238984e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
13 changes: 6 additions & 7 deletions engine/source/runtime/core/meta/reflection/reflection.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ namespace Pilot
{
friend class FieldAccessor;
friend class ArrayAccessor;
;
friend class TypeMetaRegisterinterface;

public:
Expand Down Expand Up @@ -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;
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 238984e

Please sign in to comment.