#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. | |
| 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) |
| MockVulkanContextBuilder & | SetPhysicalPropertiesCallback (std::function< void(VkPhysicalDevice device, VkPhysicalDeviceProperties *physicalProperties)> physical_properties_callback) |
| MockVulkanContextBuilder | SetEmbedderData (const ContextVK::EmbedderData &embedder_data) |
Definition at line 59 of file mock_vulkan.h.
| impeller::testing::MockVulkanContextBuilder::MockVulkanContextBuilder | ( | ) |
Definition at line 969 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 989 of file mock_vulkan.cc.
References impeller::ContextVK::Create(), fml::ConcurrentMessageLoop::Create(), impeller::ContextVK::Settings::embedder_data, and impeller::ContextVK::Settings::proc_address_callback.
Referenced by impeller::testing::TEST(), impeller::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), and impeller::testing::TEST().
|
inline |
Definition at line 111 of file mock_vulkan.h.
Referenced by impeller::testing::TEST(), and impeller::testing::TEST().
|
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.
Referenced by impeller::testing::TEST(), and impeller::testing::TEST().
|
inline |
Definition at line 103 of file mock_vulkan.h.
Referenced by impeller::testing::CanBatchSubmitTest(), impeller::testing::CanUseFramebufferFetch(), impeller::testing::CanUseMipgeneration(), impeller::testing::CanUsePrimitiveRestartSubmitTest(), impeller::testing::IsBadVersionTest(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), and impeller::testing::TEST().
|
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.
Referenced by impeller::testing::TEST(), impeller::testing::TEST(), and impeller::testing::TEST().