blob: 6e6252f0ccd84d324ce202014795341937313d27 [file] [log] [blame]
Courtney Goeltzenleuchter18061cd2015-06-29 15:39:26 -06001/*
Courtney Goeltzenleuchter18061cd2015-06-29 15:39:26 -06002 *
Courtney Goeltzenleuchter8a17da52015-10-29 13:50:34 -06003 * Copyright (C) 2015 Valve Corporation
Courtney Goeltzenleuchter18061cd2015-06-29 15:39:26 -06004 *
5 * Permission is hereby granted, free of charge, to any person obtaining a
6 * copy of this software and associated documentation files (the "Software"),
7 * to deal in the Software without restriction, including without limitation
8 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9 * and/or sell copies of the Software, and to permit persons to whom the
10 * Software is furnished to do so, subject to the following conditions:
11 *
12 * The above copyright notice and this permission notice shall be included
13 * in all copies or substantial portions of the Software.
14 *
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21 * DEALINGS IN THE SOFTWARE.
22 *
Courtney Goeltzenleuchter96cd7952015-10-30 11:14:30 -060023 * Author: Courtney Goeltzenleuchter <courtney@LunarG.com>
24 *
Courtney Goeltzenleuchter18061cd2015-06-29 15:39:26 -060025 */
26
David Pinedo329ca9e2015-11-06 12:54:48 -070027#include "vulkan/vk_layer.h"
Courtney Goeltzenleuchter18061cd2015-06-29 15:39:26 -060028
29#ifndef LAYER_EXTENSION_UTILS_H
30#define LAYER_EXTENSION_UTILS_H
31
Courtney Goeltzenleuchterfc117482015-07-06 22:29:41 -060032#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
33
Courtney Goeltzenleuchter18061cd2015-06-29 15:39:26 -060034/*
35 * This file contains static functions for the generated layers
36 */
37extern "C" {
38
39VkResult util_GetExtensionProperties(
40 const uint32_t count,
41 const VkExtensionProperties *layer_extensions,
42 uint32_t* pCount,
43 VkExtensionProperties* pProperties);
44
45VkResult util_GetLayerProperties(
46 const uint32_t count,
47 const VkLayerProperties *layer_properties,
48 uint32_t* pCount,
49 VkLayerProperties* pProperties);
50
51} // extern "C"
52#endif // LAYER_EXTENSION_UTILS_H
53