chromium/third_party/vulkan-validation-layers/src/layers/vk_layer_config.h

/* Copyright (c) 2015-2024 The Khronos Group Inc.
 * Copyright (c) 2015-2024 Valve Corporation
 * Copyright (c) 2015-2024 LunarG, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 **************************************************************************/
#pragma once

#include <cstdio>
#include <string>

#include "vulkan/vk_layer.h"
#include "vulkan/vulkan.h"
#include "containers/custom_containers.h"

#if defined(WIN32)
#define DEFAULT_VK_REGISTRY_HIVE
#define DEFAULT_VK_REGISTRY_HIVE_STR
#define SECONDARY_VK_REGISTRY_HIVE
#define SECONDARY_VK_REGISTRY_HIVE_STR
#endif

std::string GetEnvironment(const char *variable);

// Not supported on Android
void SetEnvironment(const char *variable, const char *value);

enum SettingsFileSource {};

struct SettingsFileInfo {};

enum LogMessageTypeBits {};
LogMessageTypeFlags;

// Definitions for Debug Actions
enum VkLayerDbgActionBits {};
VkLayerDbgActionFlags;

const char *getLayerOption(const char *option);
const SettingsFileInfo *GetLayerSettingsFileInfo();

FILE *getLayerLogOutput(const char *option, const char *layer_name);
VkFlags GetLayerOptionFlags(const std::string &option, vvl::unordered_map<std::string, VkFlags> const &enum_data,
                            uint32_t option_default);

void PrintMessageFlags(VkFlags vk_flags, char *msg_flags);
void PrintMessageSeverity(VkFlags vk_flags, char *msg_flags);
void PrintMessageType(VkFlags vk_flags, char *msg_flags);