5#include <vulkan/vulkan.h>
11#include "gtest/gtest.h"
12#include "impeller/entity/vk/entity_shaders_vk.h"
13#include "impeller/entity/vk/framebuffer_blend_shaders_vk.h"
14#include "impeller/entity/vk/modern_shaders_vk.h"
22 std::make_shared<fml::NonOwnedMapping>(impeller_entity_shaders_vk_data,
23 impeller_entity_shaders_vk_length),
24 std::make_shared<fml::NonOwnedMapping>(impeller_modern_shaders_vk_data,
25 impeller_modern_shaders_vk_length),
26 std::make_shared<fml::NonOwnedMapping>(
27 impeller_framebuffer_blend_shaders_vk_data,
28 impeller_framebuffer_blend_shaders_vk_length),
35 : vk_(
fml::MakeRefCounted<
vulkan::VulkanProcTable>(
36 vkGetInstanceProcAddr)),
42 if (!test_surface_ || surface_size_ !=
size) {
49 .
image = test_surface_
50 ?
reinterpret_cast<uint64_t
>(test_surface_->GetImage())
52 .format = VK_FORMAT_R8G8B8A8_UNORM,
61 std::unique_ptr<TestVulkanSurface> test_surface_;
73 std::unique_ptr<Surface>
surface =
74 std::make_unique<GPUSurfaceVulkanImpeller>(&delegate, context);
77 auto pool = context->GetCommandPoolRecycler()->Get();
94 auto surface = std::make_unique<GPUSurfaceVulkanImpeller>(&delegate, context);
97 ASSERT_NE(frame,
nullptr);
98 auto transients =
surface->transients_;
99 ASSERT_NE(transients,
nullptr);
103 ASSERT_NE(frame,
nullptr);
104 EXPECT_EQ(
surface->transients_, transients);
108 ASSERT_NE(frame,
nullptr);
109 EXPECT_NE(
surface->transients_, transients);
Interface implemented by all platform surfaces that can present a Vulkan backing store to the "screen...
const vulkan::VulkanProcTable & vk() override
Obtain a reference to the Vulkan implementation's proc table.
FlutterVulkanImage AcquireImage(const DlISize &size) override
Called by the engine to fetch a VkImage for writing the next frame.
bool PresentImage(VkImage image, VkFormat format) override
Called by the engine once a frame has been rendered to the image and it's ready to be bound for furth...
TestGPUSurfaceVulkanDelegate()
static std::unique_ptr< TestVulkanSurface > Create(const TestVulkanContext &context, const DlISize &surface_size)
static int GetGlobalPoolCount(const ContextVK &context)
static std::shared_ptr< ContextVK > Create(Settings settings)
FlutterVulkanImage * image
static std::vector< std::shared_ptr< fml::Mapping > > ShaderLibraryMappings()
TEST(NativeAssetsManagerTest, NoAvailableAssets)
impeller::ISize32 DlISize
it will be possible to load the file into Perfetto s trace viewer use test Running tests that layout and measure text will not yield consistent results across various platforms Enabling this option will make font resolution default to the Ahem test font on all disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
std::vector< std::shared_ptr< fml::Mapping > > shader_libraries_data
PFN_vkGetInstanceProcAddr proc_address_callback