LOCAL_LDLIBS := -llog\r
include $(BUILD_SHARED_LIBRARY)\r
\r
+include $(CLEAR_VARS)\r
+LOCAL_MODULE := VKLayerDeviceLimits\r
+LOCAL_SRC_FILES += $(SRC_DIR)/layers/device_limits.cpp\r
+LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_debug_marker_table.cpp\r
+LOCAL_C_INCLUDES += $(SRC_DIR)/include \\r
+ $(SRC_DIR)/buildAndroid/generated \\r
+ $(SRC_DIR)/loader\r
+LOCAL_STATIC_LIBRARIES += layer_utils\r
+LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR\r
+LOCAL_LDLIBS := -llog\r
+include $(BUILD_SHARED_LIBRARY)\r
+\r
include $(CLEAR_VARS)\r
LOCAL_MODULE := VKLayerImage\r
LOCAL_SRC_FILES += $(SRC_DIR)/layers/image.cpp\r
APP_ABI := armeabi-v7a arm64-v8a x86 x86_64 mips mips64\r
APP_PLATFORM := android-22\r
APP_STL := gnustl_static\r
-APP_MODULES := layer_utils VKLayerBasic VKLayerDrawState VKLayerMemTracker VKLayerImage VKLayerParamChecker VKLayerGeneric VKLayerAPIDump VKLayerObjectTracker VKLayerThreading VKLayerValidationTests\r
+APP_MODULES := layer_utils VKLayerBasic VKLayerDrawState VKLayerMemTracker VKLayerDeviceLimits VKLayerImage VKLayerParamChecker VKLayerGeneric VKLayerAPIDump VKLayerObjectTracker VKLayerThreading VKLayerValidationTests\r
APP_CPPFLAGS += -std=c++11 -DVK_PROTOTYPES\r
NDK_TOOLCHAIN_VERSION := 4.8\r
#define LAYER_PROPS_ARRAY_SIZE 1
static const VkLayerProperties layerProps[LAYER_PROPS_ARRAY_SIZE] = {
{
- "Generic",
+ "VK_LAYER_LUNARG_api_dump",
VK_API_VERSION, // specVersion
VK_MAKE_VERSION(0, 1, 0), // implementationVersion
"layer: APIDump",
#define LAYER_DEV_PROPS_ARRAY_SIZE 1
static const VkLayerProperties layerDevProps[LAYER_DEV_PROPS_ARRAY_SIZE] = {
{
- "Generic",
+ "VK_LAYER_LUNARG_api_dump",
VK_API_VERSION, // specVersion
VK_MAKE_VERSION(0, 1, 0), // implementationVersion
"layer: APIDump",
static const VkLayerProperties basic_physicaldevice_layers[] = {
{
- "Basic",
+ "VK_LAYER_LUNARG_basic",
VK_API_VERSION,
VK_MAKE_VERSION(0, 1, 0),
"Sample layer: Basic, implements vkLayerExtension1",
/*
*
* Copyright (C) 2015 Valve Corporation
+ * Copyright (C) 2015 Google Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
#include "vk_struct_size_helper.h"
#include "device_limits.h"
#include "vk_layer_config.h"
-#include "vk_debug_marker_layer.h"
+#include "vulkan/vk_debug_marker_layer.h"
#include "vk_layer_table.h"
#include "vk_layer_debug_marker_table.h"
#include "vk_layer_data.h"
static const VkLayerProperties dl_global_layers[] = {
{
- "DeviceLimits",
+ "VK_LAYER_LUNARG_device_limits",
VK_API_VERSION,
VK_MAKE_VERSION(0, 1, 0),
"Validation layer: Device Limits",
static const VkLayerProperties ds_global_layers[] = {
{
- "DrawState",
+ "VK_LAYER_LUNARG_draw_state",
VK_API_VERSION,
VK_MAKE_VERSION(0, 1, 0),
"Validation layer: DrawState",
/*
*
* Copyright (C) 2015 Valve Corporation
+ * Copyright (C) 2015 Google Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
static const VkLayerProperties globalLayerProps[] = {
{
- "Generic",
+ "VK_LAYER_LUNARG_generic",
VK_API_VERSION, // specVersion
VK_MAKE_VERSION(0, 1, 0), // implementationVersion
"layer: Generic",
static const VkLayerProperties deviceLayerProps[] = {
{
- "Generic",
+ "VK_LAYER_LUNARG_generic",
VK_API_VERSION, // specVersion
VK_MAKE_VERSION(0, 1, 0), // implementationVersion
"layer: Generic",
/*
*
* Copyright (C) 2015 Valve Corporation
+ * Copyright (C) 2015 Google Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
static const VkLayerProperties pc_global_layers[] = {
{
- "Image",
+ "VK_LAYER_LUNARG_image",
VK_API_VERSION,
VK_MAKE_VERSION(0, 1, 0),
- "Validation layer: Image ParamChecker",
+ "Validation layer: Image",
}
};
static const VkLayerProperties mtGlobalLayers[] = {
{
- "MemTracker",
+ "VK_LAYER_LUNARG_mem_tracker",
VK_API_VERSION,
VK_MAKE_VERSION(0, 1, 0),
"Validation layer: MemTracker",
/*
*
* Copyright (C) 2015 Valve Corporation
+ * Copyright (C) 2015 Google Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
static const VkLayerProperties globalLayerProps[] = {
{
- "Swapchain",
+ "VK_LAYER_LUNARG_swapchain",
VK_API_VERSION, // specVersion
VK_MAKE_VERSION(0, 1, 0), // implementationVersion
"layer: Swapchain",
static const VkLayerProperties deviceLayerProps[] = {
{
- "Swapchain",
+ "VK_LAYER_LUNARG_swapchain",
VK_API_VERSION, // specVersion
VK_MAKE_VERSION(0, 1, 0), // implementationVersion
"layer: Swapchain",
# Do nothing, extension definition part of generic.h
ggep_body.append('%s' % self.lineinfo.get())
else:
+ layer_name = re.sub('(.)([A-Z][a-z]+)', r'\1_\2', layer)
+ layer_name = re.sub('([a-z0-9])([A-Z])', r'\1_\2', layer_name).lower()
ggep_body.append('%s' % self.lineinfo.get())
ggep_body.append('static const VkLayerProperties globalLayerProps[] = {')
ggep_body.append(' {')
- ggep_body.append(' "%s",' % layer)
+ ggep_body.append(' "VK_LAYER_LUNARG_%s",' % layer_name)
ggep_body.append(' VK_API_VERSION, // specVersion')
ggep_body.append(' VK_MAKE_VERSION(0, 1, 0), // implementationVersion')
ggep_body.append(' "layer: %s",' % layer)