update GetUUIDCachePath function, use ComboFilename function.
This commit is contained in:
parent
b68243cf04
commit
a91d8140c7
2
CMCore
2
CMCore
@ -1 +1 @@
|
|||||||
Subproject commit ad4b2cd48c9744c3a5e2fed29a15a79d7a5d35b3
|
Subproject commit 28bf928b3b7bc78c601ad2224bff487f3751e882
|
@ -1,5 +1,7 @@
|
|||||||
#include<hgl/graph/VK.h>
|
#include<hgl/graph/VK.h>
|
||||||
#include<hgl/filesystem/FileSystem.h>
|
#include<hgl/filesystem/FileSystem.h>
|
||||||
|
#include<hgl/type/StringList.h>
|
||||||
|
#include<hgl/type/StrChar.h>
|
||||||
|
|
||||||
VK_NAMESPACE_BEGIN
|
VK_NAMESPACE_BEGIN
|
||||||
namespace
|
namespace
|
||||||
@ -9,17 +11,18 @@ namespace
|
|||||||
const OSString GetUUIDCachePath(const VkPhysicalDeviceProperties &pdp)
|
const OSString GetUUIDCachePath(const VkPhysicalDeviceProperties &pdp)
|
||||||
{
|
{
|
||||||
OSString app_data;
|
OSString app_data;
|
||||||
OSString pathname;
|
|
||||||
|
|
||||||
if(!GetLocalAppdataPath(app_data))return OS_TEXT("");
|
if(!GetLocalAppdataPath(app_data))return OS_TEXT("");
|
||||||
|
|
||||||
pathname=app_data+HGL_DIRECTORY_SEPARATOR
|
OSStringList sl;
|
||||||
+OSString(OS_TEXT("VkPipelineCache.com"))+HGL_DIRECTORY_SEPARATOR
|
|
||||||
+OSString::valueOf(VK_PIPELINE_CACHE_HEADER_VERSION_ONE)+HGL_DIRECTORY_SEPARATOR
|
|
||||||
+OSString::valueOf(pdp.vendorID)+HGL_DIRECTORY_SEPARATOR
|
|
||||||
+OSString::valueOf(pdp.deviceID)+HGL_DIRECTORY_SEPARATOR;
|
|
||||||
|
|
||||||
return pathname;
|
sl.Add(app_data);
|
||||||
|
sl.Add(OS_TEXT("VkPipelineCache.com"));
|
||||||
|
sl.Add(OSString::valueOf(VK_PIPELINE_CACHE_HEADER_VERSION_ONE));
|
||||||
|
sl.Add(OSString::valueOf(pdp.vendorID));
|
||||||
|
sl.Add(OSString::valueOf(pdp.deviceID));
|
||||||
|
|
||||||
|
return ComboFilename(sl);
|
||||||
}
|
}
|
||||||
|
|
||||||
void LoadPipelineCacheFile(VkPipelineCacheCreateInfo *pcci,const VkPhysicalDeviceProperties &pdp)
|
void LoadPipelineCacheFile(VkPipelineCacheCreateInfo *pcci,const VkPhysicalDeviceProperties &pdp)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user