2025-10-04 22:08:19 +03:30
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <renderer/backend/vk/vulkan.hpp>
|
|
|
|
|
|
|
|
|
|
namespace lt::renderer::vk {
|
|
|
|
|
|
|
|
|
|
inline void vkc(VkResult result)
|
|
|
|
|
{
|
|
|
|
|
if (result)
|
|
|
|
|
{
|
2025-10-08 06:29:20 +03:30
|
|
|
throw std::runtime_error {
|
|
|
|
|
std::format("Vulkan call failed with result: {}", std::to_underlying(result))
|
|
|
|
|
};
|
2025-10-04 22:08:19 +03:30
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // namespace lt::renderer::vk
|