blob: a22841c4a885822b013b4c6b022a0ffe33ae46da [file] [log] [blame]
Mark Lobodzinski6eda00a2016-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 Ashburnbe582642014-12-22 12:04:40 -07004 *
5 * Permission is hereby granted, free of charge, to any person obtaining a copy
Mark Lobodzinski6eda00a2016-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 Ashburnbe582642014-12-22 12:04:40 -070011 *
Mark Lobodzinski6eda00a2016-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 Ashburnbe582642014-12-22 12:04:40 -070014 *
Mark Lobodzinski6eda00a2016-02-02 15:55:36 -070015 * The Materials are Confidential Information as defined by the Khronos
16 * Membership Agreement until designated non-confidential by Khronos, at which
17 * point this condition clause shall be removed.
18 *
19 * THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
Jon Ashburnbe582642014-12-22 12:04:40 -070020 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
Mark Lobodzinski6eda00a2016-02-02 15:55:36 -070021 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
22 *
23 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
24 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
25 * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE
26 * USE OR OTHER DEALINGS IN THE MATERIALS
Jon Ashburnbe582642014-12-22 12:04:40 -070027 *
Jon Ashburne922f712015-11-03 13:41:23 -070028 * Author: Jon Ashburn <jon@lunarg.com>
Jon Ashburnbe582642014-12-22 12:04:40 -070029 **************************************************************************/
30#pragma once
Jon Ashburna8aa8372015-03-03 15:07:15 -070031#include <stdbool.h>
Jon Ashburnbe582642014-12-22 12:04:40 -070032
33#ifdef __cplusplus
34extern "C" {
35#endif
36
37const char *getLayerOption(const char *_option);
Tobin Ehlisb1df55e2015-09-15 09:55:54 -060038FILE* getLayerLogOutput(const char *_option, const char *layerName);
Courtney Goeltzenleuchter7415d5a2015-12-09 15:48:16 -070039VkDebugReportFlagsEXT getLayerOptionFlags(const char *_option, uint32_t optionDefault);
Jon Ashburna8aa8372015-03-03 15:07:15 -070040bool getLayerOptionEnum(const char *_option, uint32_t *optionDefault);
Jon Ashburnbe582642014-12-22 12:04:40 -070041
Jon Ashburndec60512015-01-13 17:24:01 -070042void setLayerOption(const char *_option, const char *_val);
43void setLayerOptionEnum(const char *_option, const char *_valEnum);
Courtney Goeltzenleuchterf85e3612015-06-14 11:33:06 -060044void print_msg_flags(VkFlags msgFlags, char *msg_flags);
Jon Ashburnbe582642014-12-22 12:04:40 -070045#ifdef __cplusplus
46}
47#endif