aboutsummaryrefslogtreecommitdiff
path: root/layers/basic.cpp
diff options
context:
space:
mode:
authorDavid Pinedo <david@lunarg.com>2015-07-09 16:23:44 -0600
committerDavid Pinedo <david@lunarg.com>2015-07-09 16:23:44 -0600
commited008740ee2398e1527abb1cae9da804bfd88441 (patch)
tree246f0eb621e0d4b6e9531e6dd6d47e0d3fba8a10 /layers/basic.cpp
parent9363b4932bae44a1ec7aa661408be8d58ac27608 (diff)
downloadusermoji-ed008740ee2398e1527abb1cae9da804bfd88441.tar.xz
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
Diffstat (limited to 'layers/basic.cpp')
-rw-r--r--layers/basic.cpp19
1 files changed, 19 insertions, 0 deletions
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);
+}