From ed008740ee2398e1527abb1cae9da804bfd88441 Mon Sep 17 00:00:00 2001 From: David Pinedo Date: Thu, 9 Jul 2015 16:23:44 -0600 Subject: Layers: They now compile on Windows. Added missing vk funcs to basic and screenshot Changed several funcs in mem_tracker to return void Loader cmake file was generating .def file on linux, removed it Fixed missing entry points in layers generated via python --- layers/basic.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'layers/basic.cpp') diff --git a/layers/basic.cpp b/layers/basic.cpp index aec3ea41..d1e78059 100644 --- a/layers/basic.cpp +++ b/layers/basic.cpp @@ -33,6 +33,15 @@ // being used: #include "vk_loader_platform.h" +static const VkLayerProperties globalLayerProps[] = { + { + "Basic", + VK_API_VERSION, // specVersion + VK_MAKE_VERSION(0, 1, 0), // implVersion + "layer: Basic", + } +}; + VK_LAYER_EXPORT VkResult VKAPI vkLayerExtension1(VkDevice device) { @@ -175,3 +184,13 @@ VK_LAYER_EXPORT void * VKAPI vkGetInstanceProcAddr(VkInstance instance, const ch return NULL; return instance_dispatch_table(instance)->GetInstanceProcAddr(instance, pName); } + +VK_LAYER_EXPORT VkResult VKAPI vkGetGlobalExtensionProperties(const char *pLayerName, uint32_t *pCount, VkExtensionProperties* pProperties) +{ + return util_GetExtensionProperties(0, NULL, pCount, pProperties); +} + +VK_LAYER_EXPORT VkResult VKAPI vkGetGlobalLayerProperties(uint32_t *pCount, VkLayerProperties* pProperties) +{ + return util_GetLayerProperties(ARRAY_SIZE(globalLayerProps), globalLayerProps, pCount, pProperties); +} -- cgit v1.2.3