# Possible oversights when variable rate shading was added to PSO cache 

**URL:** <https://forums.unrealengine.com/t/possible-oversights-when-variable-rate-shading-was-added-to-pso-cache/2690250>\
**Category:** Rendering\
**Tags:** unreal-engine, Epic-Pro-Support, question\
**Created:** [December 2, 2025, 3:52pm UTC](https://forums.unrealengine.com/t/possible-oversights-when-variable-rate-shading-was-added-to-pso-cache/2690250 "2025-12-02T15:52:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [December 2, 2025, 3:52pm UTC](https://forums.unrealengine.com/t/possible-oversights-when-variable-rate-shading-was-added-to-pso-cache/2690250/1 "2025-12-02T15:52:11Z")

</div>

Hi,

I could be wrong, but there might be some issues with [https://github.com/EpicGames/UnrealEngine/commit/0a1a5e480501764fbeb2c12905bc58ee8a323d79](https://github.com/EpicGames/UnrealEngine/commit/0a1a5e480501764fbeb2c12905bc58ee8a323d79)

Firstly, GetTypeHash(const FPipelineCacheFileFormatPSO &Key) was modified to account for the new fields, but they are not serialized because FPipelineCacheFileFormatCurrentVersion was not updated to latest version (VariableRateShading).

There’s another issue in FShaderPipelineCacheTask::Precompile, the new VSR fields aren’t applied from the FPipelineCacheFileFormatPSO to the FGraphicsPipelineStateInitializer.

Thanks,

JB.

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [December 2, 2025, 3:52pm UTC](https://forums.unrealengine.com/t/possible-oversights-when-variable-rate-shading-was-added-to-pso-cache/2690250/2 "2025-12-02T15:52:16Z")

</div>

**Steps to Reproduce**

---

<div class="post-metadata">

**Author:** ![christopher.fiala](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@christopher.fiala](https://forums.unrealengine.com/u/christopher.fiala)\
**Post date:** [December 3, 2025, 7:19pm UTC](https://forums.unrealengine.com/t/possible-oversights-when-variable-rate-shading-was-added-to-pso-cache/2690250/3 "2025-12-03T19:19:59Z")

</div>

Hi Jean-Baptiste,

Both those points were definitely oversights, appreciate the catch here. I’ll put together a change to address these this week.

Thanks,

Christopher Fiala

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [December 4, 2025, 8:42am UTC](https://forums.unrealengine.com/t/possible-oversights-when-variable-rate-shading-was-added-to-pso-cache/2690250/4 "2025-12-04T08:42:10Z")

</div>

Hey, awesome thanks for the quick reply, looking forward to it so that I can revert my change and integrate the official fix.

Wasn’t sure that would cover everything, but I can confirm that with both fixes it’s working on my side in 5.7.1.

Without the fix, the behavior would be a lot of “PSO from the cache was not found in the cache!” because of the FPipelineCacheFileFormatPSO-\>FGraphicsPipelineStateInitializer-\>FPipelineCacheFileFormatPSO not being equal due to both points.

Thanks,

JB.

---

<div class="post-metadata">

**Author:** ![christopher.fiala](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@christopher.fiala](https://forums.unrealengine.com/u/christopher.fiala)\
**Post date:** [December 8, 2025, 3:05pm UTC](https://forums.unrealengine.com/t/possible-oversights-when-variable-rate-shading-was-added-to-pso-cache/2690250/5 "2025-12-08T15:05:47Z")

</div>

Hi JB,

I submitted the fix in CL 48973278 on UE5/Main (incrementing FPipelineCacheFileFormatCurrentVersion and properly setting the VRS fields in FShaderPipelineCacheTask::Precompile). Thanks again for the heads up - let me know if you run into any more issues.

Thanks,

Chris
