From fa565f96823f3985cffa3a899742fdf1449d5876 Mon Sep 17 00:00:00 2001 From: Yong He Date: Fri, 9 Jul 2021 11:00:44 -0700 Subject: Enable testing with Swiftshader. (#1906) --- tools/gfx/vulkan/vk-module.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'tools/gfx/vulkan/vk-module.h') diff --git a/tools/gfx/vulkan/vk-module.h b/tools/gfx/vulkan/vk-module.h index 7ddd5da45..eb1b3d570 100644 --- a/tools/gfx/vulkan/vk-module.h +++ b/tools/gfx/vulkan/vk-module.h @@ -25,6 +25,9 @@ struct VulkanModule /// Get a function by name PFN_vkVoidFunction getFunction(const char* name) const; + /// true if using a software Vulkan implementation. + bool isSoftware() const { return m_isSoftware; } + /// Initialize Slang::Result init(); /// Destroy @@ -33,8 +36,9 @@ struct VulkanModule /// Dtor ~VulkanModule() { destroy(); } - protected: - void* m_module = nullptr; + protected: + void* m_module = nullptr; + bool m_isSoftware = false; }; } // renderer_test -- cgit v1.2.3