Error in Computer Shader "Accessing the RHI resource at this time is not allowed" (5.4.2)

Myxcil
Tue, 25 Jun 2024 05:02:07 +0000
Rendering

Hi,

I have a problem with a compute shader.
I try to run a pass several times for a fluid simulation but I keep getting the following error:

Assertion failed: DebugData->bAllowRHIAccess || GRDGAllowRHIAccess [File:D:\build\++UE5\Sync\Engine\Source\Runtime\RenderCore\Private\RenderGraphValidation.cpp] [Line: 56]
Accessing the RHI resource of Pressure0 at this time is not allowed. If you hit this check in pass, that is due to this resource not being referenced in the parameters of your pass.

Pressure0 (and Pressure1) being the two FRDGTextureRefs created beforehand. Here is the paragraph in question:
FireSimulation.cpp

If I comment this block out, everything runs fine as far as I can tell. Anyone has an idea, what I’m doing wrong?

Cheers,
Markus

19 posts - 3 participants