perhaps you need to make it sharable for it to not become invalidated?
TSharedPtr<FRDGTextureRef> SharedPressure = MakeShareable(Pressure);
perhaps you need to make it sharable for it to not become invalidated?
TSharedPtr<FRDGTextureRef> SharedPressure = MakeShareable(Pressure);