UE 5.8.0 - Ensure condition failed: FrontLayerTranslucencyGBuffer resources should only be created if any view will render in this pass

Summary

UE 5.8.0 - Assertion failed: StateBefore != D3D12_RESOURCE_STATE_COMMON
Engine\Source\Runtime\D3D12RHI\Private\D3D12LegacyBarriers.cpp Line: 1454

What Type of Bug are you experiencing?

Rendering (Graphics / Niagara)

Steps to Reproduce

Difficult to reproduce - happens when spawning in a particle system w/ an additive blend mode.

Expected Result

Engine does not trigger ensure condition when spawning additive blend material bearing niagara system

Observed Result

Engine triggers an assertion failure when spawning additive blend material bearing niagara system

Affects Versions

5.8

Platform(s)

Windows

Upload an image

Additional Notes

Found relevant messaging when debugging:

if (ResourceState.AccessBefore != ERHIAccess::Present)
{
check(StateBefore != D3D12_RESOURCE_STATE_COMMON);
}
In D3D12LegacyBarriers.cpp, Ln 1454

ensureMsgf(bAnyViewRendersPass, TEXT(“FrontLayerTranslucencyGBuffer resources should only be created if any view will render in this pass.”));
In FrontLayerTranslucency.cpp, Ln 716

removing these validation checks bypasses the crash, but also removes validation checks that we are unsure are necessary?