diff options
| author | Yong He <yonghe@outlook.com> | 2021-07-09 11:00:44 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-09 11:00:44 -0700 |
| commit | fa565f96823f3985cffa3a899742fdf1449d5876 (patch) | |
| tree | e8aeddb87cd077bf9b28ca4b799756c0ee77e48a /tools/gfx/vulkan/vk-module.h | |
| parent | 09a251e0f3a31c826eaa91eef64b04eb01c4393a (diff) | |
Enable testing with Swiftshader. (#1906)
Diffstat (limited to 'tools/gfx/vulkan/vk-module.h')
| -rw-r--r-- | tools/gfx/vulkan/vk-module.h | 8 |
1 files changed, 6 insertions, 2 deletions
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 |
