PSO collection & integration in UE5.5+

Hello,

I’m trying to integrate PSO in a UE 5.5 game, but Manually Creating Bundled PSO Caches in Unreal Engine | Unreal Engine 5.5 Documentation | Epic Developer Community doesn’t match what the engine produces.

There are no .shk files in /PipelineCaches, but instead .ushaderbytecode & .assetinfo.json in \ShaderLibrarySource, is there any documentation somewhere about how to integrate them in a new package?

Steps to Reproduce
Follow the steps in the documentation regarding PSO collection (https://dev.epicgames.com/documentation/en\-us/unreal\-engine/manually\-creating\-bundled\-pso\-caches\-in\-unreal\-engine?application\_version\=5\.5\)

At step 2 of Converting PSO Caches, there’s no such directory as (Project)/Saved/Cooked/(Platform)/(ProjectName)/Metadata/PipelineCaches and no .shk files.

Hello there,

When I cook, I’m seeing .shk files created as the result of a cook. In a default, third-person template, I’m seeing .shk files at Saved\Shaders\PCD3D_SM6\ and Saved\Cooked\Windows\TPTest\Metadata\PipelineCaches\.

Just to confirm, the lines below is present in DefaultEngine.ini.

[/Script/Engine.RendererSettings]
r.ShaderPipelineCache.Enabled=1
 
[DevOptions.Shaders]
NeedsShaderStableKeys=true

I hope this helps.

Best regards,

Chris

My bad, I must had made a typo or put the settings in the wrong file. :frowning:

Thank you for the quick answer :slight_smile:

No worries, I’m very glad that it’s working for you.

Best regards,

Chris