blob: 0a07a78e9b7b98aa229586fda3db4b144833f9f5 [file] [log] [blame]
Mark Lobodzinski288e4f72016-02-02 15:55:36 -07001/* Copyright (c) 2015-2016 The Khronos Group Inc.
2 * Copyright (c) 2015-2016 Valve Corporation
3 * Copyright (c) 2015-2016 LunarG, Inc.
Courtney Goeltzenleuchter18061cd2015-06-29 15:39:26 -06004 *
Mark Lobodzinski288e4f72016-02-02 15:55:36 -07005 * Permission is hereby granted, free of charge, to any person obtaining a copy
6 * of this software and/or associated documentation files (the "Materials"), to
7 * deal in the Materials without restriction, including without limitation the
8 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
9 * sell copies of the Materials, and to permit persons to whom the Materials
10 * are furnished to do so, subject to the following conditions:
Courtney Goeltzenleuchter18061cd2015-06-29 15:39:26 -060011 *
Mark Lobodzinski288e4f72016-02-02 15:55:36 -070012 * The above copyright notice(s) and this permission notice shall be included
13 * in all copies or substantial portions of the Materials.
Courtney Goeltzenleuchter18061cd2015-06-29 15:39:26 -060014 *
Mark Lobodzinski288e4f72016-02-02 15:55:36 -070015 * THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
Courtney Goeltzenleuchter18061cd2015-06-29 15:39:26 -060016 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
Mark Lobodzinski288e4f72016-02-02 15:55:36 -070017 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
18 *
19 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
20 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
21 * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE
22 * USE OR OTHER DEALINGS IN THE MATERIALS
Courtney Goeltzenleuchter18061cd2015-06-29 15:39:26 -060023 *
Courtney Goeltzenleuchter96cd7952015-10-30 11:14:30 -060024 * Author: Courtney Goeltzenleuchter <courtney@LunarG.com>
25 *
Courtney Goeltzenleuchter18061cd2015-06-29 15:39:26 -060026 */
27
David Pinedo329ca9e2015-11-06 12:54:48 -070028#include "vulkan/vk_layer.h"
Courtney Goeltzenleuchter18061cd2015-06-29 15:39:26 -060029
30#ifndef LAYER_EXTENSION_UTILS_H
31#define LAYER_EXTENSION_UTILS_H
32
Courtney Goeltzenleuchterfc117482015-07-06 22:29:41 -060033#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
34
Courtney Goeltzenleuchter18061cd2015-06-29 15:39:26 -060035/*
36 * This file contains static functions for the generated layers
37 */
38extern "C" {
39
Jon Ashburn491a3cd2016-03-08 17:48:44 -070040VkResult util_GetExtensionProperties(const uint32_t count, const VkExtensionProperties *layer_extensions, uint32_t *pCount,
41 VkExtensionProperties *pProperties);
Courtney Goeltzenleuchter18061cd2015-06-29 15:39:26 -060042
Jon Ashburn491a3cd2016-03-08 17:48:44 -070043VkResult util_GetLayerProperties(const uint32_t count, const VkLayerProperties *layer_properties, uint32_t *pCount,
44 VkLayerProperties *pProperties);
Courtney Goeltzenleuchter18061cd2015-06-29 15:39:26 -060045
46} // extern "C"
47#endif // LAYER_EXTENSION_UTILS_H