File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed
Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -1173,17 +1173,18 @@ def clear_cook_cache():
11731173def build_shaders (platform : str = "PCD3D_SM6" ):
11741174 uproject_path = get_uproject_path ()
11751175 project_name = uproject_path .stem
1176- project_path = uproject_path .parent
1176+ project_path = str (uproject_path .parent )
1177+ args = [
1178+ str (get_editor_path ()),
1179+ str (get_uproject_path ()),
1180+ "-run=ShaderPipelineCacheTools" ,
1181+ "expand" ,
1182+ f"{ project_path } /Saved/StagedBuilds/Windows/{ project_name } /Saved/CollectedPSOs/*.rec.upipelinecache" ,
1183+ f"{ project_path } /Saved/Shaders/{ platform } /*.shk" ,
1184+ f"{ project_path } /Build/Windows/PipelineCaches/PSO_{ project_name } _{ platform } .spc" ,
1185+ ]
11771186 pbtools .run_stream (
1178- [
1179- get_editor_path (),
1180- get_uproject_path (),
1181- "-run=ShaderPipelineCacheTools" ,
1182- "expand" ,
1183- f"{ project_path } /Saved/StagedBuilds/Windows/{ project_name } /Saved/CollectedPSOs/*.rec.upipelinecache"
1184- f"{ project_path } /Saved/Shaders/{ platform } /*.shk" ,
1185- f"{ project_path } /Build/Windows/PipelineCaches/PSO_{ project_name } _{ platform } .spc" ,
1186- ],
1187+ args ,
11871188 logfunc = lambda x : pbtools .checked_stream_log (
11881189 x , error = "Error: " , warning = "Warning: "
11891190 ),
You can’t perform that action at this time.
0 commit comments