diff options
| author | Chia-I Wu <olv@google.com> | 2016-04-28 14:12:27 +0800 |
|---|---|---|
| committer | Tobin Ehlis <tobine@google.com> | 2016-05-05 06:42:19 -0600 |
| commit | 9ca49b0a0388b10f9179015dde8829c020dbc5db (patch) | |
| tree | a0ff4575a3bf80117e88592d327630e5b3fd3771 /layers/device_limits.cpp | |
| parent | 96b8e8e959b8433b722b7f673f0fc826a7f1b4d2 (diff) | |
| download | usermoji-9ca49b0a0388b10f9179015dde8829c020dbc5db.tar.xz | |
device_limits: add device_limits::global_layer
Replace dl_global_layers with global_layer. There is no plan to define
more than one layer in the same namespace.
Diffstat (limited to 'layers/device_limits.cpp')
| -rw-r--r-- | layers/device_limits.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/layers/device_limits.cpp b/layers/device_limits.cpp index e715d221..90c70349 100644 --- a/layers/device_limits.cpp +++ b/layers/device_limits.cpp @@ -93,9 +93,9 @@ static void init_device_limits(layer_data *my_data, const VkAllocationCallbacks static const VkExtensionProperties instance_extensions[] = {{VK_EXT_DEBUG_REPORT_EXTENSION_NAME, VK_EXT_DEBUG_REPORT_SPEC_VERSION}}; -static const VkLayerProperties dl_global_layers[] = {{ +static const VkLayerProperties global_layer = { "VK_LAYER_LUNARG_device_limits", VK_LAYER_API_VERSION, 1, "LunarG Validation Layer", -}}; +}; VKAPI_ATTR VkResult VKAPI_CALL CreateInstance(const VkInstanceCreateInfo *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkInstance *pInstance) { @@ -804,12 +804,12 @@ vkDebugReportMessageEXT(VkInstance instance, VkDebugReportFlagsEXT flags, VkDebu VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL vkEnumerateInstanceLayerProperties(uint32_t *pCount, VkLayerProperties *pProperties) { - return util_GetLayerProperties(ARRAY_SIZE(device_limits::dl_global_layers), device_limits::dl_global_layers, pCount, pProperties); + return util_GetLayerProperties(1, &device_limits::global_layer, pCount, pProperties); } VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL vkEnumerateDeviceLayerProperties(VkPhysicalDevice physicalDevice, uint32_t *pCount, VkLayerProperties *pProperties) { - return util_GetLayerProperties(ARRAY_SIZE(device_limits::dl_global_layers), device_limits::dl_global_layers, pCount, pProperties); + return util_GetLayerProperties(1, &device_limits::global_layer, pCount, pProperties); } VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL |
