From fa61cd46539463bc1a05c7e262f6eaeddb859ce6 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Mon, 8 Nov 2021 14:48:27 -0800 Subject: [PATCH] remove cursed typedef --- include/Refresh.h | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/include/Refresh.h b/include/Refresh.h index ee29c19..856c9a9 100644 --- a/include/Refresh.h +++ b/include/Refresh.h @@ -46,12 +46,6 @@ #endif /* __GNUC__ */ #endif /* REFRESHNAMELESS */ -#define VK_DEFINE_HANDLE(object) typedef struct object##_T* object; - -VK_DEFINE_HANDLE(VkInstance) -VK_DEFINE_HANDLE(VkDevice) -VK_DEFINE_HANDLE(VkPhysicalDevice) - #include #ifdef __cplusplus @@ -626,9 +620,9 @@ typedef struct Refresh_SysRenderer #if REFRESH_DRIVER_VULKAN struct { - VkInstance instance; - VkPhysicalDevice physicalDevice; - VkDevice logicalDevice; + void* instance; + void* physicalDevice; + void* logicalDevice; uint32_t queueFamilyIndex; } vulkan; #endif /* REFRESH_DRIVER_VULKAN */