feature/imgui-sdl
Last change
on this file since 6d698e5 was c205c3a, checked in by Dmitry Portnoy <dportnoy@…>, 4 years ago |
In VulkanSFMLReference, use the Vulkan SDK version of vulkan.h instead of the one from the SFML repo, switch to the newer debugUtilsMessengerEXT for debugging, and add resources the example code needs for rendering
|
-
Property mode
set to
100644
|
File size:
892 bytes
|
Line | |
---|
1 | #ifndef _VULKAN_UTILS__NEWH
|
---|
2 | #define _VULKAN_UTILS__NEWH
|
---|
3 |
|
---|
4 | // This class was created because the original VulkanUtils includes SDL, which I am no longer using
|
---|
5 | // TODO: Split the original into an SDL-free part and a part that has SDL-specific functions
|
---|
6 |
|
---|
7 | #include <vector>
|
---|
8 |
|
---|
9 | #include <vulkan/vulkan.h>
|
---|
10 |
|
---|
11 | using namespace std;
|
---|
12 |
|
---|
13 | class VulkanUtilsNew {
|
---|
14 | public:
|
---|
15 | static bool checkValidationLayerSupport(const vector<const char*>& validationLayers);
|
---|
16 |
|
---|
17 | static VkResult createDebugUtilsMessengerEXT(VkInstance instance,
|
---|
18 | const VkDebugUtilsMessengerCreateInfoEXT* pCreateInfo,
|
---|
19 | const VkAllocationCallbacks* pAllocator,
|
---|
20 | VkDebugUtilsMessengerEXT* pDebugMessenger);
|
---|
21 |
|
---|
22 | static void destroyDebugUtilsMessengerEXT(VkInstance instance,
|
---|
23 | VkDebugUtilsMessengerEXT debugMessenger,
|
---|
24 | const VkAllocationCallbacks* pAllocator);
|
---|
25 | };
|
---|
26 |
|
---|
27 | #endif // _VULKAN_UTILS_NEW_H
|
---|
28 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.