浏览代码

Vulkan properties 추가. (pipeline cache path)

Hongtae Kim 6 年前
父节点
当前提交
1529a8593a
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7
    0
      TestApp1/TestApp1.cpp

+ 7
- 0
TestApp1/TestApp1.cpp 查看文件

@@ -183,6 +183,13 @@ public:
183 183
 		DKLog("resPath: %ls", (const wchar_t*)resPath);
184 184
 		resourcePool.AddLocatorForPath(resPath);
185 185
 
186
+		DKVariant vulkanProps;
187
+		vulkanProps.NewValueAtKeyPath("pipelineCacheFilePath", 
188
+									  DefaultPath(SystemPath::AppExecutable).FilePathStringByAppendingPath("pipeline.cache"));
189
+
190
+		DKPropertySet::SystemConfig().SetValue("Vulkan", vulkanProps);
191
+
192
+
186 193
 		DKObject<DKData> vertData = resourcePool.LoadResourceData("shaders/texture/texture.vert.spv");
187 194
 		DKObject<DKData> fragData = resourcePool.LoadResourceData("shaders/texture/texture.frag.spv");
188 195