Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
mock_vulkan.cc File Reference
#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.
 

Variable Documentation

◆ acquire_next_image_callback

std::function<std::remove_pointer_t<PFN_vkAcquireNextImageKHR> > acquire_next_image_callback

◆ called_functions_

std::shared_ptr<std::vector<std::string> > called_functions_

Definition at line 27 of file mock_vulkan.cc.

◆ current_image

size_t current_image = 0

Definition at line 44 of file mock_vulkan.cc.

◆ device_extensions

◆ format_properties_callback

std::function<void(VkPhysicalDevice physicalDevice, VkFormat format, VkFormatProperties* pFormatProperties)> format_properties_callback

◆ image_memory_barriers_

std::vector<VkImageMemoryBarrier> image_memory_barriers_

Definition at line 28 of file mock_vulkan.cc.

◆ images

◆ instance_extensions

◆ instance_layers

std::vector<std::string> instance_layers

◆ physical_device_properties_callback

std::function<void(VkPhysicalDevice physicalDevice, VkPhysicalDeviceProperties* pProperties)> physical_device_properties_callback

Definition at line 121 of file mock_vulkan.cc.

◆ recorded_viewports_

std::vector<VkViewport> recorded_viewports_

Definition at line 29 of file mock_vulkan.cc.

◆ wait_for_fences_callback

std::function<std::remove_pointer_t<PFN_vkWaitForFences> > wait_for_fences_callback