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)),
45 .
image =
reinterpret_cast<uint64_t
>(test_surface_->GetImage()),
46 .
format = VK_FORMAT_R8G8B8A8_UNORM,
55 std::unique_ptr<TestVulkanSurface> test_surface_;
66 std::unique_ptr<Surface>
surface =
67 std::make_unique<GPUSurfaceVulkanImpeller>(&delegate, context);
70 auto pool = context->GetCommandPoolRecycler()->Get();
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 int GetGlobalPoolCount(const ContextVK &context)
static std::shared_ptr< ContextVK > Create(Settings settings)
FlutterVulkanImage * image
uint32_t uint32_t * format
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
size_t struct_size
The size of this struct. Must be sizeof(FlutterVulkanImage).
std::vector< std::shared_ptr< fml::Mapping > > shader_libraries_data
PFN_vkGetInstanceProcAddr proc_address_callback