headers: Remove loader/layer dependency
authorLenny Komow <lenny@lunarg.com>
Mon, 25 Jun 2018 19:59:47 +0000 (13:59 -0600)
committerLenny Komow <lenny@lunarg.com>
Fri, 6 Jul 2018 17:03:23 +0000 (11:03 -0600)
The header vk_layer.h included vk_layer_dispatch_table.h, which is not
present in this repo. Instead, it had to be generated from either the
Vulkan-Loader or Vulkan-ValidationLayers repo. This change removes
that dependency.

include/vulkan/vk_layer.h

index e8300c37d4d0d20f1ffa62183df775f60f6319fb..823c88ab759d11e7237550f8b8cda2301bc7693f 100644 (file)
@@ -35,9 +35,6 @@
 #define VK_LAYER_EXPORT
 #endif
 
-// Definition for VkLayerDispatchTable and VkLayerInstanceDispatchTable now appear in externally generated header
-#include "vk_layer_dispatch_table.h"
-
 #define MAX_NUM_UNKNOWN_EXTS 250
 
  // Loader-Layer version negotiation API.  Versions add the following features:
@@ -50,6 +47,9 @@
 
 #define VK_CURRENT_CHAIN_VERSION 1
 
+// Typedef for use in the interfaces below
+typedef PFN_vkVoidFunction (VKAPI_PTR *PFN_GetPhysicalDeviceProcAddr)(VkInstance instance, const char* pName);
+
 // Version negotiation values
 typedef enum VkNegotiateLayerStructType {
     LAYER_NEGOTIATE_UNINTIALIZED = 0,