Start preparing to split this code up

This commit is contained in:
twinaphex 2016-02-29 23:31:51 +01:00
parent 9a10ef5591
commit 7a907a97a7
2 changed files with 135 additions and 133 deletions

View File

@ -129,9 +129,7 @@ enum vulkan_wsi_type
#define VKFUNC(sym) (vkcfp->sym)
typedef struct vulkan_context
{
struct vulkan_context_fp
typedef struct vulkan_context_fp
{
/* Instance */
PFN_vkCreateInstance vkCreateInstance;
@ -310,7 +308,11 @@ typedef struct vulkan_context
#ifdef HAVE_MIR
PFN_vkCreateMirSurfaceKHR vkCreateMirSurfaceKHR;
#endif
} fp;
} vulkan_context_fp_t;
typedef struct vulkan_context
{
vulkan_context_fp_t fp;
VkInstance instance;
VkPhysicalDevice gpu;

View File

@ -20,7 +20,7 @@
#include <stddef.h>
#include <vulkan/vulkan.h>
#include "libretro-common/include/boolean.h"
#include <boolean.h>
#ifdef __cplusplus
extern "C" {