blob: 0f249b7f7725baaa9597218c4797ab1a4aac9ae9 [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 *
Jon Ashburn43b53e82016-04-19 11:30:31 -06005 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
Courtney Goeltzenleuchter18061cd2015-06-29 15:39:26 -06008 *
Jon Ashburn43b53e82016-04-19 11:30:31 -06009 * http://www.apache.org/licenses/LICENSE-2.0
Courtney Goeltzenleuchter18061cd2015-06-29 15:39:26 -060010 *
Jon Ashburn43b53e82016-04-19 11:30:31 -060011 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
Courtney Goeltzenleuchter18061cd2015-06-29 15:39:26 -060016 *
Courtney Goeltzenleuchter96cd7952015-10-30 11:14:30 -060017 * Author: Courtney Goeltzenleuchter <courtney@LunarG.com>
18 *
Courtney Goeltzenleuchter18061cd2015-06-29 15:39:26 -060019 */
20
David Pinedo329ca9e2015-11-06 12:54:48 -070021#include "vulkan/vk_layer.h"
Courtney Goeltzenleuchter18061cd2015-06-29 15:39:26 -060022
23#ifndef LAYER_EXTENSION_UTILS_H
24#define LAYER_EXTENSION_UTILS_H
25
Courtney Goeltzenleuchterfc117482015-07-06 22:29:41 -060026#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
27
Courtney Goeltzenleuchter18061cd2015-06-29 15:39:26 -060028/*
29 * This file contains static functions for the generated layers
30 */
31extern "C" {
32
Jon Ashburn491a3cd2016-03-08 17:48:44 -070033VkResult util_GetExtensionProperties(const uint32_t count, const VkExtensionProperties *layer_extensions, uint32_t *pCount,
34 VkExtensionProperties *pProperties);
Courtney Goeltzenleuchter18061cd2015-06-29 15:39:26 -060035
Jon Ashburn491a3cd2016-03-08 17:48:44 -070036VkResult util_GetLayerProperties(const uint32_t count, const VkLayerProperties *layer_properties, uint32_t *pCount,
37 VkLayerProperties *pProperties);
Courtney Goeltzenleuchter18061cd2015-06-29 15:39:26 -060038
39} // extern "C"
40#endif // LAYER_EXTENSION_UTILS_H