Start preparing to split this code up
This commit is contained in:
parent
9a10ef5591
commit
7a907a97a7
|
@ -129,9 +129,7 @@ enum vulkan_wsi_type
|
||||||
|
|
||||||
#define VKFUNC(sym) (vkcfp->sym)
|
#define VKFUNC(sym) (vkcfp->sym)
|
||||||
|
|
||||||
typedef struct vulkan_context
|
typedef struct vulkan_context_fp
|
||||||
{
|
|
||||||
struct vulkan_context_fp
|
|
||||||
{
|
{
|
||||||
/* Instance */
|
/* Instance */
|
||||||
PFN_vkCreateInstance vkCreateInstance;
|
PFN_vkCreateInstance vkCreateInstance;
|
||||||
|
@ -310,7 +308,11 @@ typedef struct vulkan_context
|
||||||
#ifdef HAVE_MIR
|
#ifdef HAVE_MIR
|
||||||
PFN_vkCreateMirSurfaceKHR vkCreateMirSurfaceKHR;
|
PFN_vkCreateMirSurfaceKHR vkCreateMirSurfaceKHR;
|
||||||
#endif
|
#endif
|
||||||
} fp;
|
} vulkan_context_fp_t;
|
||||||
|
|
||||||
|
typedef struct vulkan_context
|
||||||
|
{
|
||||||
|
vulkan_context_fp_t fp;
|
||||||
|
|
||||||
VkInstance instance;
|
VkInstance instance;
|
||||||
VkPhysicalDevice gpu;
|
VkPhysicalDevice gpu;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <vulkan/vulkan.h>
|
#include <vulkan/vulkan.h>
|
||||||
|
|
||||||
#include "libretro-common/include/boolean.h"
|
#include <boolean.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
Loading…
Reference in New Issue