feature/imgui-sdl
points-test
|
Last change
on this file since c6fec84 was cb01aff, checked in by Dmitry Portnoy <dmitry.portnoy@…>, 6 years ago |
|
Create a VulkanUtils class to hold some generic Vulkan functions
|
-
Property mode
set to
100644
|
|
File size:
696 bytes
|
| Line | |
|---|
| 1 | #ifndef _VULKAN_UTILS_H
|
|---|
| 2 | #define _VULKAN_UTILS_H
|
|---|
| 3 |
|
|---|
| 4 | #include <vector>
|
|---|
| 5 |
|
|---|
| 6 | #include <vulkan/vulkan.h>
|
|---|
| 7 |
|
|---|
| 8 | using namespace std;
|
|---|
| 9 |
|
|---|
| 10 | class VulkanUtils {
|
|---|
| 11 | public:
|
|---|
| 12 | static bool checkValidationLayerSupport(const vector<const char*> &validationLayers);
|
|---|
| 13 |
|
|---|
| 14 | static VkResult createDebugUtilsMessengerEXT(VkInstance instance,
|
|---|
| 15 | const VkDebugUtilsMessengerCreateInfoEXT* pCreateInfo,
|
|---|
| 16 | const VkAllocationCallbacks* pAllocator,
|
|---|
| 17 | VkDebugUtilsMessengerEXT* pDebugMessenger);
|
|---|
| 18 |
|
|---|
| 19 | static void destroyDebugUtilsMessengerEXT(VkInstance instance,
|
|---|
| 20 | VkDebugUtilsMessengerEXT debugMessenger,
|
|---|
| 21 | const VkAllocationCallbacks* pAllocator);
|
|---|
| 22 | };
|
|---|
| 23 |
|
|---|
| 24 | #endif // _VULKAN_UTILS_H
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.