-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vkconfig3: Layer tabs UI improvements
- Loading branch information
1 parent
685b603
commit a851086
Showing
18 changed files
with
380 additions
and
109 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* Copyright (c) 2020-2024 Valve Corporation | ||
* Copyright (c) 2020-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. | ||
* | ||
* Authors: | ||
* - Christophe Riccio <[email protected]> | ||
*/ | ||
|
||
#include "type_layer_path_view.h" |
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,31 @@ | ||
/* | ||
* Copyright (c) 2020-2024 Valve Corporation | ||
* Copyright (c) 2020-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. | ||
* | ||
* Authors: | ||
* - Christophe Riccio <[email protected]> | ||
*/ | ||
|
||
#pragma once | ||
|
||
enum LayersPathViewType { | ||
LAYERS_PATH_ONLY_USER_DEFINED = 0, | ||
LAYERS_PATH_ONLY_ACTIVE_SDK, | ||
LAYERS_PATH_ALL, | ||
|
||
LAYERS_PATH_FIRST = LAYERS_PATH_ONLY_USER_DEFINED, | ||
LAYERS_PATH_LAST = LAYERS_PATH_ALL, | ||
}; | ||
enum { LAYERS_PATH_COUNT = LAYERS_PATH_LAST - LAYERS_PATH_FIRST + 1 }; |
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,45 @@ | ||
/* | ||
* Copyright (c) 2020-2024 Valve Corporation | ||
* Copyright (c) 2020-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. | ||
* | ||
* Authors: | ||
* - Christophe Riccio <[email protected]> | ||
*/ | ||
|
||
#include "type_layers_paths.h" | ||
|
||
#include <array> | ||
|
||
LayerType GetLayerType(LayersPaths Layers_paths_type) { | ||
if (Layers_paths_type == LAYERS_PATHS_IMPLICIT) { | ||
return LAYER_TYPE_IMPLICIT; | ||
} else { | ||
return LAYER_TYPE_EXPLICIT; | ||
} | ||
} | ||
|
||
const char* GetLabel(LayersPaths Layers_paths_type) { | ||
static const char* TABLE[] = { | ||
"Implicit Layers", // LAYERS_PATHS_IMPLICIT | ||
"Explicit Layers", // LAYERS_PATHS_EXPLICIT | ||
"$VK_LAYER_PATH Layers", // LAYERS_PATHS_ENV_SET | ||
"$VK_ADD_LAYER_PATH Layers", // LAYERS_PATHS_ENV_ADD | ||
"Vulkan Configurator Layers", // LAYERS_PATHS_GUI | ||
"Vulkan SDK Layers", // LAYERS_PATHS_SDK | ||
}; | ||
static_assert(std::size(TABLE) == LAYERS_PATHS_COUNT, "The tranlation table size doesn't match the enum number of elements"); | ||
|
||
return TABLE[Layers_paths_type]; | ||
} |
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,41 @@ | ||
/* | ||
* Copyright (c) 2020-2024 Valve Corporation | ||
* Copyright (c) 2020-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. | ||
* | ||
* Authors: | ||
* - Christophe Riccio <[email protected]> | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include "type_layer_type.h" | ||
|
||
enum LayersPaths { | ||
LAYERS_PATHS_IMPLICIT = 0, | ||
LAYERS_PATHS_EXPLICIT, | ||
LAYERS_PATHS_ENV_SET, // From $VK_LAYER_PATH | ||
LAYERS_PATHS_ENV_ADD, // from $VK_ADD_LAYER_PATH | ||
LAYERS_PATHS_GUI, | ||
LAYERS_PATHS_SDK, | ||
|
||
LAYERS_PATHS_FIRST = LAYERS_PATHS_IMPLICIT, | ||
LAYERS_PATHS_LAST = LAYERS_PATHS_SDK, | ||
}; | ||
|
||
enum { LAYERS_PATHS_COUNT = LAYERS_PATHS_LAST - LAYERS_PATHS_FIRST + 1 }; | ||
|
||
LayerType GetLayerType(LayersPaths Layers_paths_type); | ||
|
||
const char* GetLabel(LayersPaths Layers_paths_type); |
Oops, something went wrong.