summaryrefslogtreecommitdiff
path: root/tools/render-test/vk-module.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/render-test/vk-module.h')
-rw-r--r--tools/render-test/vk-module.h39
1 files changed, 0 insertions, 39 deletions
diff --git a/tools/render-test/vk-module.h b/tools/render-test/vk-module.h
deleted file mode 100644
index 0aed2303f..000000000
--- a/tools/render-test/vk-module.h
+++ /dev/null
@@ -1,39 +0,0 @@
-// vk-module.h
-#pragma once
-
-#include "../../slang.h"
-
-#include "../../slang-com-helper.h"
-
-#if SLANG_WINDOWS_FAMILY
-# define VK_USE_PLATFORM_WIN32_KHR 1
-#else
-# define VK_USE_PLATFORM_XLIB_KHR 1
-#endif
-
-#define VK_NO_PROTOTYPES
-#include <vulkan/vulkan.h>
-
-namespace renderer_test {
-
-struct VulkanModule
-{
- /// true if has been initialized
- SLANG_FORCE_INLINE bool isInitialized() const { return m_module != nullptr; }
-
- /// Get a function by name
- PFN_vkVoidFunction getFunction(const char* name) const;
-
- /// Initialize
- Slang::Result init();
- /// Destroy
- void destroy();
-
- /// Dtor
- ~VulkanModule() { destroy(); }
-
- protected:
- void* m_module = nullptr;
-};
-
-} // renderer_test