1
1
/*
2
2
* Assorted commonly used Vulkan helper functions
3
3
*
4
- * Copyright (C) 2016-2023 by Sascha Willems - www.saschawillems.de
4
+ * Copyright (C) 2016-2024 by Sascha Willems - www.saschawillems.de
5
5
*
6
6
* This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT)
7
7
*/
12
12
// iOS & macOS: getAssetPath() and getShaderBasePath() implemented externally for access to Obj-C++ path utilities
13
13
const std::string getAssetPath ()
14
14
{
15
- if (vks::tools::resourcePathSet) {
15
+ if (vks::tools::resourcePath != " " ) {
16
16
return vks::tools::resourcePath + " /assets/" ;
17
17
}
18
18
#if defined(VK_USE_PLATFORM_ANDROID_KHR)
@@ -24,15 +24,9 @@ if(vks::tools::resourcePathSet){
24
24
#endif
25
25
}
26
26
27
- void setResourcePath (std::string path)
28
- {
29
- vks::tools::resourcePath = path;
30
- vks::tools::resourcePathSet = true ;
31
- }
32
-
33
27
const std::string getShaderBasePath ()
34
28
{
35
- if (vks::tools::resourcePathSet) {
29
+ if (vks::tools::resourcePath != " " ) {
36
30
return vks::tools::resourcePath + " /shaders/" ;
37
31
}
38
32
#if defined(VK_USE_PLATFORM_ANDROID_KHR)
@@ -50,7 +44,6 @@ namespace vks
50
44
namespace tools
51
45
{
52
46
bool errorModeSilent = false ;
53
- bool resourcePathSet = false ;
54
47
std::string resourcePath = " " ;
55
48
56
49
std::string errorString (VkResult errorCode)
0 commit comments