#include "impeller/renderer/backend/vulkan/test/mock_vulkan.h"#include <cstdint>#include <cstring>#include <utility>#include <vector>#include "flutter/fml/logging.h"#include "impeller/base/thread_safety.h"#include "impeller/renderer/backend/vulkan/vk.h"#include "third_party/swiftshader/include/vulkan/vulkan_core.h"#include "vulkan/vulkan.hpp"Go to the source code of this file.
Namespaces | |
| namespace | impeller |
| namespace | impeller::testing |
Functions | |
| std::shared_ptr< std::vector< std::string > > | impeller::testing::GetMockVulkanFunctions (VkDevice device) |
| void | impeller::testing::SetSwapchainImageSize (ISize size) |
| Override the image size returned by all swapchain images. | |
| std::vector< VkImageMemoryBarrier > & | impeller::testing::GetImageMemoryBarriers (VkCommandBuffer buffer) |
| const std::vector< VkViewport > & | impeller::testing::GetRecordedViewports (VkCommandBuffer buffer) |
Returns the viewports passed to vkCmdSetViewport calls on the given command buffer, in call order. | |
| std::function<std::remove_pointer_t<PFN_vkAcquireNextImageKHR> > acquire_next_image_callback |
Definition at line 125 of file mock_vulkan.cc.
Referenced by impeller::testing::MockVulkanContextBuilder::SetAcquireNextImageCallback().
| std::shared_ptr<std::vector<std::string> > called_functions_ |
Definition at line 27 of file mock_vulkan.cc.
| size_t current_image = 0 |
Definition at line 44 of file mock_vulkan.cc.
| std::vector<std::string> device_extensions |
Definition at line 114 of file mock_vulkan.cc.
Referenced by flutter::EmbedderSurfaceVulkanImpeller::EmbedderSurfaceVulkanImpeller(), impeller::GetSupportedDeviceExtensions(), and impeller::testing::MockVulkanContextBuilder::SetDeviceExtensions().
| std::function<void(VkPhysicalDevice physicalDevice, VkFormat format, VkFormatProperties* pFormatProperties)> format_properties_callback |
Definition at line 118 of file mock_vulkan.cc.
Referenced by impeller::testing::MockVulkanContextBuilder::SetPhysicalDeviceFormatPropertiesCallback().
| std::vector<VkImageMemoryBarrier> image_memory_barriers_ |
Definition at line 28 of file mock_vulkan.cc.
| std::array<MockImage, 3> images |
Definition at line 43 of file mock_vulkan.cc.
Referenced by impeller::Playground::CreateTextureCubeForFixture(), flutter::testing::TEST_P(), flutter::testing::TEST_P(), flutter::testing::TEST_P(), flutter::testing::TEST_P(), flutter::testing::TEST_P(), flutter::testing::TEST_P(), flutter::testing::TEST_P(), flutter::testing::TEST_P(), flutter::testing::TEST_P(), flutter::testing::TEST_P(), and flutter::testing::TEST_P().
| std::vector<std::string> instance_extensions |
Definition at line 112 of file mock_vulkan.cc.
Referenced by flutter::EmbedderSurfaceVulkanImpeller::EmbedderSurfaceVulkanImpeller(), and impeller::testing::MockVulkanContextBuilder::SetInstanceExtensions().
| std::vector<std::string> instance_layers |
Definition at line 113 of file mock_vulkan.cc.
Referenced by impeller::testing::MockVulkanContextBuilder::SetInstanceLayers().
| std::function<void(VkPhysicalDevice physicalDevice, VkPhysicalDeviceProperties* pProperties)> physical_device_properties_callback |
Definition at line 121 of file mock_vulkan.cc.
| std::vector<VkViewport> recorded_viewports_ |
Definition at line 29 of file mock_vulkan.cc.
| std::function<std::remove_pointer_t<PFN_vkWaitForFences> > wait_for_fences_callback |
Definition at line 123 of file mock_vulkan.cc.
Referenced by impeller::testing::MockVulkanContextBuilder::SetWaitForFencesCallback().