-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
layer: Add minimum reflection on layer settings
- Loading branch information
1 parent
79d5fb1
commit e36ed76
Showing
9 changed files
with
95 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// Copyright 2023 The Khronos Group Inc. | ||
// Copyright 2023 Valve Corporation | ||
// Copyright 2023 LunarG, Inc. | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// | ||
// Author(s): | ||
// - Christophe Riccio <christophe@lunarg.com> | ||
|
||
#include "vulkan/layer/vk_layer_settings_ext.h" | ||
#include <cassert> | ||
#include <cstring> | ||
|
||
#if defined(__GNUC__) && __GNUC__ >= 4 | ||
#define LAYER_EXPORT __attribute__((visibility("default"))) | ||
#else | ||
#define LAYER_EXPORT | ||
#endif | ||
|
||
// Keep synchronized with VkLayer_khronos_profiles.def / VkLayer_khronos_profiles.map | ||
extern "C" { | ||
|
||
LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL vkEnumerateInstanceLayerSettingsEXT( | ||
VkInstance instance, const char* pLayerName, | ||
uint32_t* pSettingCount, | ||
VkLayerSettingPropertiesEXT* pSettings) { | ||
|
||
assert(pSettingCount != nullptr); | ||
|
||
if (strcmp(pLayerName, VK_EXT_LAYER_SETTINGS_EXTENSION_NAME) != 0) { | ||
return VK_SUCCESS; | ||
} | ||
|
||
if (*pSettingCount > 0 && pSettings != nullptr) { | ||
|
||
} else { | ||
|
||
} | ||
|
||
return VK_SUCCESS; | ||
} | ||
|
||
} // extern "C" |