HDRP Realtime Reflection Probe conflicts with ALINE

When ALINE is used in a project with HDRP realtime reflection probes, following error is printed on each frame. This happens only when running a built player but not inside Unity Editor. Everything still appears to work fine regardless of the error.

Dimensions of color surface ("ProbeRealTimeTexture_Main Camera") do not match dimensions of depth surface ("CameraDepthStencil_2560x1440_D32_SFloat_S8_UInt_Tex2DArray_Dynamic"): (256, 256) != (2560, 1440)

To reproduce:

  1. Create a HDRP project. (e.g. sample one from Unity Hub)
  2. Add a reflection probe in scene and set its mode to Realtime, updated on Every Frame.
  3. Import ALINE.
  4. Add a MonoBehaviour to scene that attempts to use Drawing.ingame API to draw.
  5. Build and run project.
  6. Check logs at %USERPROFILE%\AppData\LocalLow\CompanyName\ProductName\Player.log
  • ALINE version: 1.7.8
  • Unity version: 6000.3
  • Render pipeline: HDRP 17.3

I thought maybe ALINE is trying to draw to reflection probe map using camera buffer size so I attempted to patch AlineHDRPCustomPass to ignore UnityEngine.CameraType.Reflection but it didn’t seem to help. Disabling custom passes in HDRP settings mitigates the issue while breaking ALINE.

I can provide a reproduction repo if helpful. Thank you for this amazing package!

If you could provide that repo that would save a lot of time on my end and I can see if I’m getting the same behaviour. Also your log that you generated for comparison sake :+1: