#include "layer_options.h"
#include "generated/error_location_helper.h"
#include "utils/hash_util.h"
#include <vulkan/layer/vk_layer_settings.hpp>
#include "generated/chassis.h"
#include "gpu/core/gpu_settings.h"
#include "error_message/logging.h"
#include "sync/sync_settings.h"
#if defined(USE_MIMALLOC) && defined(_WIN64)
#include "mimalloc-new-delete.h"
#endif
const auto &VkValFeatureDisableLookup() { … }
const auto &VkValFeatureEnableLookup() { … }
const auto &ValidationDisableLookup() { … }
const auto &ValidationEnableLookup() { … }
const std::vector<std::string> &GetDisableFlagNameHelper() { … }
const std::vector<std::string> &GetEnableFlagNameHelper() { … }
const char *VK_LAYER_ENABLES = …;
const char *VK_LAYER_VALIDATE_BEST_PRACTICES = …;
const char *VK_LAYER_VALIDATE_BEST_PRACTICES_ARM = …;
const char *VK_LAYER_VALIDATE_BEST_PRACTICES_AMD = …;
const char *VK_LAYER_VALIDATE_BEST_PRACTICES_IMG = …;
const char *VK_LAYER_VALIDATE_BEST_PRACTICES_NVIDIA = …;
const char *VK_LAYER_VALIDATE_SYNC = …;
const char *VK_LAYER_VALIDATE_GPU_BASED = …;
const char *VK_LAYER_DISABLES = …;
const char *VK_LAYER_CHECK_SHADERS = …;
const char *VK_LAYER_THREAD_SAFETY = …;
const char *VK_LAYER_STATELESS_PARAM = …;
const char *VK_LAYER_OBJECT_LIFETIME = …;
const char *VK_LAYER_VALIDATE_CORE = …;
const char *VK_LAYER_UNIQUE_HANDLES = …;
const char *VK_LAYER_CHECK_SHADERS_CACHING = …;
const char *VK_LAYER_CHECK_COMMAND_BUFFER = …;
const char *VK_LAYER_CHECK_OBJECT_IN_USE = …;
const char *VK_LAYER_CHECK_QUERY = …;
const char *VK_LAYER_CHECK_IMAGE_LAYOUT = …;
const char *VK_LAYER_MESSAGE_ID_FILTER = …;
const char *VK_LAYER_CUSTOM_STYPE_LIST = …;
const char *VK_LAYER_DUPLICATE_MESSAGE_LIMIT = …;
const char *VK_LAYER_FINE_GRAINED_LOCKING = …;
const char *VK_LAYER_DEBUG_DISABLE_SPIRV_VAL = …;
const char *VK_LAYER_PRINTF_TO_STDOUT = …;
const char *VK_LAYER_PRINTF_VERBOSE = …;
const char *VK_LAYER_PRINTF_BUFFER_SIZE = …;
const char *VK_LAYER_GPUAV_SHADER_INSTRUMENTATION = …;
const char *VK_LAYER_GPUAV_DESCRIPTORS_CHECKS = …;
const char *VK_LAYER_GPUAV_WARN_ON_ROBUST_OOB = …;
const char *VK_LAYER_GPUAV_BUFFER_ADDRESS_OOB = …;
const char *VK_LAYER_GPUAV_MAX_BUFFER_DEVICE_ADDRESSES = …;
const char *VK_LAYER_GPUAV_VALIDATE_RAY_QUERY = …;
const char *VK_LAYER_GPUAV_CACHE_INSTRUMENTED_SHADERS = …;
const char *VK_LAYER_GPUAV_SELECT_INSTRUMENTED_SHADERS = …;
const char *VK_LAYER_GPUAV_BUFFERS_VALIDATION = …;
const char *VK_LAYER_GPUAV_INDIRECT_DRAWS_BUFFERS = …;
const char *VK_LAYER_GPUAV_INDIRECT_DISPATCHES_BUFFERS = …;
const char *VK_LAYER_GPUAV_INDIRECT_TRACE_RAYS_BUFFERS = …;
const char *VK_LAYER_GPUAV_BUFFER_COPIES = …;
const char *VK_LAYER_GPUAV_RESERVE_BINDING_SLOT = …;
const char *VK_LAYER_GPUAV_VMA_LINEAR_OUTPUT = …;
const char *VK_LAYER_GPUAV_DEBUG_DISABLE_ALL = …;
const char *VK_LAYER_GPUAV_DEBUG_VALIDATE_INSTRUMENTED_SHADERS = …;
const char *VK_LAYER_GPUAV_DEBUG_DUMP_INSTRUMENTED_SHADERS = …;
const char *VK_LAYER_GPUAV_DEBUG_MAX_INSTRUMENTED_COUNT = …;
const char *VK_LAYER_GPUAV_DEBUG_PRINT_INSTRUMENTATION_INFO = …;
const char *VK_LAYER_SYNCVAL_SUBMIT_TIME_VALIDATION = …;
const char *VK_LAYER_SYNCVAL_SHADER_ACCESSES_HEURISTIC = …;
const char *VK_LAYER_MESSAGE_FORMAT_DISPLAY_APPLICATION_NAME = …;
const char *DEPRECATED_VK_LAYER_GPUAV_VALIDATE_COPIES = …;
const char *DEPRECATED_VK_LAYER_GPUAV_VALIDATE_INDIRECT_BUFFER = …;
const char *DEPRECATED_VK_LAYER_RESERVE_BINDING_SLOT = …;
const char *DEPRECATED_GPUAV_VMA_LINEAR_OUTPUT = …;
const char *DEPRECATED_GPUAV_WARN_ON_ROBUST_OOB = …;
const char *DEPRECATED_GPUAV_USE_INSTRUMENTED_SHADER_CACHE = …;
const char *DEPRECATED_GPUAV_SELECT_INSTRUMENTED_SHADERS = …;
const char *DEPRECATED_VK_LAYER_VALIDATE_SYNC_QUEUE_SUBMIT = …;
void SetValidationDisable(CHECK_DISABLED &disable_data, const ValidationCheckDisables disable_id) { … }
void SetValidationFeatureDisable(CHECK_DISABLED &disable_data, const VkValidationFeatureDisableEXT feature_disable) { … }
void SetValidationEnable(CHECK_ENABLED &enable_data, const ValidationCheckEnables enable_id) { … }
void SetValidationFeatureEnable(CHECK_ENABLED &enable_data, const VkValidationFeatureEnableEXT feature_enable) { … }
void SetValidationFlags(CHECK_DISABLED &disables, const VkValidationFlagsEXT *val_flags_struct) { … }
void SetValidationFeatures(CHECK_DISABLED &disable_data, CHECK_ENABLED &enable_data,
const VkValidationFeaturesEXT *val_features_struct) { … }
std::string GetNextToken(std::string *token_list, const std::string &delimiter, size_t *pos) { … }
void SetLocalEnableSetting(std::string list_of_enables, const std::string &delimiter, CHECK_ENABLED &enables) { … }
void SetLocalDisableSetting(std::string list_of_disables, const std::string &delimiter, CHECK_DISABLED &disables) { … }
uint32_t TokenToUint(std::string &token) { … }
void CreateFilterMessageIdList(std::string raw_id_list, const std::string &delimiter, vvl::unordered_set<uint32_t> &filter_list) { … }
static bool ValidateLayerSettings(const VkLayerSettingsCreateInfoEXT *layer_settings, DebugReport *debug_report) { … }
#if !defined(BUILD_SELF_VVL)
static void SetValidationSetting(VkuLayerSettingSet layer_setting_set, CHECK_DISABLED &disable_data,
const DisableFlags feature_disable, const char *setting) { … }
static void SetValidationSetting(VkuLayerSettingSet layer_setting_set, CHECK_ENABLED &enable_data, const EnableFlags feature_enable,
const char *setting) { … }
static std::string Merge(const std::vector<std::string> &strings) { … }
static const char *GetDefaultPrefix() { … }
#endif
void ProcessConfigAndEnvSettings(ConfigAndEnvSettings *settings_data) { … }