nngn
Loading...
Searching...
No Matches
utils.cpp File Reference
#include "os/platform.h"
#include "utils.h"
#include <algorithm>
#include <cassert>
#include <charconv>
#include <ranges>
Include dependency graph for utils.cpp:

Namespaces

namespace  nngn
 

Macros

#define C(x)   case x: return #x;
 

Functions

const char * nngn::vk_strerror (VkResult result)
 
const char * nngn::vk_enum_str (VkDebugUtilsMessageSeverityFlagBitsEXT f)
 
std::string nngn::vk_version_str (Graphics::Version v)
 
std::string nngn::vk_version_str (std::uint32_t v)
 Unpacks a Vulkan version number into a character array.
 
Graphics::Version nngn::vk_parse_version (std::uint32_t v)
 Unpacks a Vulkan version number.
 
const char * nngn::vk_enum_str (VkDebugUtilsMessageTypeFlagsEXT f)
 
std::vector< Graphics::Extensionnngn::vk_parse_extensions (std::span< const VkExtensionProperties > s)
 Populates Graphics::Extension objects from their Vulkan equivalents.
 
Graphics::PresentMode nngn::vk_present_mode (VkPresentModeKHR m)
 Populates a Graphics::PresentMode from its Vulkan equivalent.
 

Macro Definition Documentation

◆ C

#define C ( x)    case x: return #x;