blob: 0111e0522512e594a9e1e0ca9b84279dc332db0e [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.
Jon Ashburn47e92892014-12-22 12:04:40 -07004 *
5 * Permission is hereby granted, free of charge, to any person obtaining a copy
Mark Lobodzinski288e4f72016-02-02 15:55:36 -07006 * 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:
Jon Ashburn47e92892014-12-22 12:04:40 -070011 *
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.
Jon Ashburn47e92892014-12-22 12:04:40 -070014 *
Mark Lobodzinski288e4f72016-02-02 15:55:36 -070015 * THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
Jon Ashburn47e92892014-12-22 12:04:40 -070016 * 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
Jon Ashburn47e92892014-12-22 12:04:40 -070023 *
Jon Ashburnc5a5d632015-11-03 13:41:23 -070024 * Author: Jon Ashburn <jon@lunarg.com>
Jon Ashburn47e92892014-12-22 12:04:40 -070025 **************************************************************************/
26#pragma once
Jon Ashburne4722392015-03-03 15:07:15 -070027#include <stdbool.h>
Jon Ashburn47e92892014-12-22 12:04:40 -070028
29#ifdef __cplusplus
30extern "C" {
31#endif
32
33const char *getLayerOption(const char *_option);
Jon Ashburn491a3cd2016-03-08 17:48:44 -070034FILE *getLayerLogOutput(const char *_option, const char *layerName);
Mark Lobodzinskib838dc02016-02-03 09:57:14 -070035VkDebugReportFlagsEXT getLayerOptionFlags(const char *_option, uint32_t optionDefault);
Jon Ashburne4722392015-03-03 15:07:15 -070036bool getLayerOptionEnum(const char *_option, uint32_t *optionDefault);
Jon Ashburn47e92892014-12-22 12:04:40 -070037
Jon Ashburn0f1dbf12015-01-13 17:24:01 -070038void setLayerOption(const char *_option, const char *_val);
39void setLayerOptionEnum(const char *_option, const char *_valEnum);
Courtney Goeltzenleuchter065843d2015-06-14 11:33:06 -060040void print_msg_flags(VkFlags msgFlags, char *msg_flags);
Jon Ashburn47e92892014-12-22 12:04:40 -070041#ifdef __cplusplus
42}
43#endif