Vulkan-Hpp
EnableValidationWithCallback.cpp File Reference
#include "../utils/utils.hpp"
#include <algorithm>
#include <iostream>
#include <sstream>
#include <vulkan/vulkan_to_string.hpp>

Go to the source code of this file.

Functions

VKAPI_ATTR VkResult VKAPI_CALL vkCreateDebugUtilsMessengerEXT (VkInstance instance, const VkDebugUtilsMessengerCreateInfoEXT *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkDebugUtilsMessengerEXT *pMessenger)
 
VKAPI_ATTR void VKAPI_CALL vkDestroyDebugUtilsMessengerEXT (VkInstance instance, VkDebugUtilsMessengerEXT messenger, VkAllocationCallbacks const *pAllocator)
 
VKAPI_ATTR VkBool32 VKAPI_CALL debugMessageFunc (VkDebugUtilsMessageSeverityFlagBitsEXT messageSeverity, VkDebugUtilsMessageTypeFlagsEXT messageTypes, VkDebugUtilsMessengerCallbackDataEXT const *pCallbackData, void *)
 
bool checkLayers (std::vector< char const * > const &layers, std::vector< vk::LayerProperties > const &properties)
 
int main (int, char **)
 

Variables

PFN_vkCreateDebugUtilsMessengerEXT pfnVkCreateDebugUtilsMessengerEXT
 
PFN_vkDestroyDebugUtilsMessengerEXT pfnVkDestroyDebugUtilsMessengerEXT
 

Function Documentation

◆ checkLayers()

bool checkLayers ( std::vector< char const * > const &  layers,
std::vector< vk::LayerProperties > const &  properties 
)

Definition at line 105 of file EnableValidationWithCallback.cpp.

◆ debugMessageFunc()

VKAPI_ATTR VkBool32 VKAPI_CALL debugMessageFunc ( VkDebugUtilsMessageSeverityFlagBitsEXT  messageSeverity,
VkDebugUtilsMessageTypeFlagsEXT  messageTypes,
VkDebugUtilsMessengerCallbackDataEXT const *  pCallbackData,
void *   
)

Definition at line 54 of file EnableValidationWithCallback.cpp.

◆ main()

int main ( int  ,
char **   
)

Definition at line 118 of file EnableValidationWithCallback.cpp.

◆ vkCreateDebugUtilsMessengerEXT()

VKAPI_ATTR VkResult VKAPI_CALL vkCreateDebugUtilsMessengerEXT ( VkInstance  instance,
const VkDebugUtilsMessengerCreateInfoEXT pCreateInfo,
const VkAllocationCallbacks pAllocator,
VkDebugUtilsMessengerEXT pMessenger 
)

Definition at line 41 of file EnableValidationWithCallback.cpp.

◆ vkDestroyDebugUtilsMessengerEXT()

VKAPI_ATTR void VKAPI_CALL vkDestroyDebugUtilsMessengerEXT ( VkInstance  instance,
VkDebugUtilsMessengerEXT  messenger,
VkAllocationCallbacks const *  pAllocator 
)

Definition at line 49 of file EnableValidationWithCallback.cpp.

Variable Documentation

◆ pfnVkCreateDebugUtilsMessengerEXT

PFN_vkCreateDebugUtilsMessengerEXT pfnVkCreateDebugUtilsMessengerEXT

Definition at line 38 of file EnableValidationWithCallback.cpp.

◆ pfnVkDestroyDebugUtilsMessengerEXT

PFN_vkDestroyDebugUtilsMessengerEXT pfnVkDestroyDebugUtilsMessengerEXT

Definition at line 39 of file EnableValidationWithCallback.cpp.