mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-03-17 02:34:51 +01:00
- VKHelpers was the rug everything was swept under for a long time. This commit essentially deprecates its usage across most of the backend.
24 lines
820 B
C++
24 lines
820 B
C++
#pragma once
|
|
|
|
#include "../VulkanAPI.h"
|
|
|
|
namespace vk
|
|
{
|
|
#define CHECK_RESULT(expr) { VkResult _res = (expr); if (_res != VK_SUCCESS) vk::die_with_error(_res); }
|
|
|
|
void die_with_error(VkResult error_code,
|
|
const char* file = __builtin_FILE(),
|
|
const char* func = __builtin_FUNCTION(),
|
|
u32 line = __builtin_LINE(),
|
|
u32 col = __builtin_COLUMN());
|
|
|
|
VKAPI_ATTR VkBool32 VKAPI_CALL dbgFunc(VkFlags msgFlags, VkDebugReportObjectTypeEXT objType,
|
|
u64 srcObject, usz location, s32 msgCode,
|
|
const char *pLayerPrefix, const char *pMsg, void *pUserData);
|
|
|
|
VkBool32 BreakCallback(VkFlags msgFlags, VkDebugReportObjectTypeEXT objType,
|
|
u64 srcObject, usz location, s32 msgCode,
|
|
const char* pLayerPrefix, const char* pMsg,
|
|
void* pUserData);
|
|
}
|