wren
Vulkan-based game engine
Loading...
Searching...
No Matches
vulkan.cpp File Reference
#include "wren/utils/vulkan.hpp"
#include <spdlog/fmt/fmt.h>
#include <spdlog/spdlog.h>
#include <vulkan/vulkan_core.h>
#include <vulkan/vulkan_to_string.hpp>
#include <wren/vk/result.hpp>
Include dependency graph for vulkan.cpp:

Namespaces

namespace  wren
 
namespace  wren::vulkan
 

Macros

#define LOAD_VULKAN_PFN(out, fn_name)
 

Functions

VKAPI_ATTR auto VKAPI_CALL vkCreateDebugUtilsMessengerEXT (VkInstance instance, const VkDebugUtilsMessengerCreateInfoEXT *p_create_info, const VkAllocationCallbacks *p_allocator, VkDebugUtilsMessengerEXT *p_messenger) -> VkResult
 
VKAPI_ATTR auto VKAPI_CALL vkCmdPushDescriptorSetKHR (VkCommandBuffer buffer, VkPipelineLayout layout, VkShaderStageFlags stage_flags, uint32_t offset, uint32_t size, const void *p_values)
 
auto wren::vulkan::load_functions (const ::vk::Instance &instance) -> expected< void >
 
auto wren::vulkan::debug_callback (VkDebugUtilsMessageSeverityFlagBitsEXT severity, VkDebugUtilsMessageTypeFlagsEXT type, const VkDebugUtilsMessengerCallbackDataEXT *msg_data, void *user_data) -> VkBool32
 
auto wren::vulkan::get_swapchain_support_details (const ::vk::PhysicalDevice &physical_device, const ::vk::SurfaceKHR &surface) -> expected< SwapchainSupportDetails >
 

Variables

PFN_vkCreateDebugUtilsMessengerEXT pfnVkCreateDebugUtilsMessengerEXT = nullptr
 
PFN_vkDestroyDebugUtilsMessengerEXT pfnVkDestroyDebugUtilsMessengerEXT
 
PFN_vkCmdPushConstants pfnVkCmdPushConstants = nullptr
 

Macro Definition Documentation

◆ LOAD_VULKAN_PFN

#define LOAD_VULKAN_PFN ( out,
fn_name )
Value:
if (out == nullptr) { \
out = reinterpret_cast<PFN_##fn_name>(instance.getProcAddr(#fn_name)); \
if (out == nullptr) \
return std::unexpected( \
make_error_code(::vk::Result::eErrorExtensionNotPresent)); \
}

Function Documentation

◆ vkCmdPushDescriptorSetKHR()

VKAPI_ATTR auto VKAPI_CALL vkCmdPushDescriptorSetKHR ( VkCommandBuffer buffer,
VkPipelineLayout layout,
VkShaderStageFlags stage_flags,
uint32_t offset,
uint32_t size,
const void * p_values )

◆ vkCreateDebugUtilsMessengerEXT()

VKAPI_ATTR auto VKAPI_CALL vkCreateDebugUtilsMessengerEXT ( VkInstance instance,
const VkDebugUtilsMessengerCreateInfoEXT * p_create_info,
const VkAllocationCallbacks * p_allocator,
VkDebugUtilsMessengerEXT * p_messenger ) -> VkResult
Here is the caller graph for this function:

Variable Documentation

◆ pfnVkCmdPushConstants

PFN_vkCmdPushConstants pfnVkCmdPushConstants = nullptr

◆ pfnVkCreateDebugUtilsMessengerEXT

PFN_vkCreateDebugUtilsMessengerEXT pfnVkCreateDebugUtilsMessengerEXT = nullptr

◆ pfnVkDestroyDebugUtilsMessengerEXT

PFN_vkDestroyDebugUtilsMessengerEXT pfnVkDestroyDebugUtilsMessengerEXT
Initial value:
=
nullptr