From a4466abd32d4e2feae6454073f89626c07c9ec70 Mon Sep 17 00:00:00 2001 From: jonahwilliams Date: Fri, 18 Nov 2022 12:00:31 -0800 Subject: [PATCH] [Impeller] register modern shaders on Vulkan too --- impeller/playground/backend/vulkan/playground_impl_vk.cc | 3 +++ shell/platform/android/android_surface_vulkan_impeller.cc | 3 +++ 2 files changed, 6 insertions(+) diff --git a/impeller/playground/backend/vulkan/playground_impl_vk.cc b/impeller/playground/backend/vulkan/playground_impl_vk.cc index bcd35f85ecb3b..ca96a816d6f60 100644 --- a/impeller/playground/backend/vulkan/playground_impl_vk.cc +++ b/impeller/playground/backend/vulkan/playground_impl_vk.cc @@ -12,6 +12,7 @@ #include "flutter/fml/logging.h" #include "flutter/fml/mapping.h" #include "impeller/entity/vk/entity_shaders_vk.h" +#include "impeller/entity/vk/modern_shaders_vk.h" #include "impeller/fixtures/vk/fixtures_shaders_vk.h" #include "impeller/playground/imgui/vk/imgui_shaders_vk.h" #include "impeller/renderer/backend/vulkan/context_vk.h" @@ -26,6 +27,8 @@ ShaderLibraryMappingsForPlayground() { return { std::make_shared(impeller_entity_shaders_vk_data, impeller_entity_shaders_vk_length), + std::make_shared(impeller_modern_shaders_vk_data, + impeller_modern_shaders_vk_length), std::make_shared( impeller_fixtures_shaders_vk_data, impeller_fixtures_shaders_vk_length), diff --git a/shell/platform/android/android_surface_vulkan_impeller.cc b/shell/platform/android/android_surface_vulkan_impeller.cc index f5bf383ab19da..b9588df3ac500 100644 --- a/shell/platform/android/android_surface_vulkan_impeller.cc +++ b/shell/platform/android/android_surface_vulkan_impeller.cc @@ -14,6 +14,7 @@ #include "flutter/shell/gpu/gpu_surface_vulkan_impeller.h" #include "flutter/vulkan/vulkan_native_surface_android.h" #include "impeller/entity/vk/entity_shaders_vk.h" +#include "impeller/entity/vk/modern_shaders_vk.h" namespace flutter { @@ -23,6 +24,8 @@ std::shared_ptr CreateImpellerContext( std::vector> shader_mappings = { std::make_shared(impeller_entity_shaders_vk_data, impeller_entity_shaders_vk_length), + std::make_shared(impeller_modern_shaders_vk_data, + impeller_modern_shaders_vk_length), }; PFN_vkGetInstanceProcAddr instance_proc_addr =