Flutter Engine
The Flutter Engine
|
#include <mock_vulkan.h>
Public Member Functions | |
MockVulkanContextBuilder () | |
std::shared_ptr< ContextVK > | Build () |
Create a Vulkan context with Vulkan functions mocked. The caller is given a chance to tinker on the settings right before a context is created. More... | |
MockVulkanContextBuilder & | SetSettingsCallback (const std::function< void(ContextVK::Settings &)> &settings_callback) |
MockVulkanContextBuilder & | SetInstanceExtensions (const std::vector< std::string > &instance_extensions) |
MockVulkanContextBuilder & | SetInstanceLayers (const std::vector< std::string > &instance_layers) |
MockVulkanContextBuilder & | SetPhysicalDeviceFormatPropertiesCallback (std::function< void(VkPhysicalDevice physicalDevice, VkFormat format, VkFormatProperties *pFormatProperties)> format_properties_callback) |
Definition at line 59 of file mock_vulkan.h.
impeller::testing::MockVulkanContextBuilder::MockVulkanContextBuilder | ( | ) |
Definition at line 892 of file mock_vulkan.cc.
std::shared_ptr< ContextVK > impeller::testing::MockVulkanContextBuilder::Build | ( | ) |
Create a Vulkan context with Vulkan functions mocked. The caller is given a chance to tinker on the settings right before a context is created.
Definition at line 912 of file mock_vulkan.cc.
|
inline |
Definition at line 80 of file mock_vulkan.h.
|
inline |
Definition at line 86 of file mock_vulkan.h.
|
inline |
Set the behavior of vkGetPhysicalDeviceFormatProperties, which needs to respond differently for different formats.
Definition at line 94 of file mock_vulkan.h.
|
inline |
A callback that allows the modification of the ContextVK::Settings before the context is made.
Definition at line 74 of file mock_vulkan.h.