Fix build issues for impeller vulkan (flutter/engine#34843)
This commit is contained in:
@@ -8,7 +8,14 @@
|
||||
#include "impeller/base/validation.h"
|
||||
|
||||
#define VK_NO_PROTOTYPES
|
||||
|
||||
#if !defined(NDEBUG)
|
||||
#define VULKAN_HPP_ASSERT FML_CHECK
|
||||
#else
|
||||
#define VULKAN_HPP_ASSERT(ignored) \
|
||||
{}
|
||||
#endif
|
||||
|
||||
#define VULKAN_HPP_NAMESPACE impeller::vk
|
||||
#define VULKAN_HPP_ASSERT_ON_RESULT(ignored) \
|
||||
{ [[maybe_unused]] auto res = (ignored); }
|
||||
|
||||
@@ -528,6 +528,7 @@ def to_gn_args(args):
|
||||
|
||||
# Vulkan support is WIP, see: https://github.com/flutter/flutter/issues/107357
|
||||
if args.enable_impeller_vulkan:
|
||||
gn_args['impeller_enable_opengles'] = False
|
||||
gn_args['impeller_enable_vulkan'] = True
|
||||
gn_args['skia_use_vma'] = False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user