Shapes - not working with Foveated Rendering

Avatar

Hi Freya,

I am using immediate mode to draw a lot of my UI. I've run into a performance optimization problem while using Shapes. I am targeting the Meta Quest 3 using the OpenXR plugin.

If I enable Foveated Rendering and have any calls to immediate draw mode, the whole screen renders black inside the Quest 3. I've done a bunch of testing and narrowed it down to this.

Setting 'Universal Renderer Data/Compatibility/Intermediate Texture = Always' and OpenXR Fovetaed Rendering - Enabled. 

-no Foveation seems to be applied, and the GPU performance is cut in half.

If Intermediate Texture is set to 'Auto' and Fovetaed Rendering - Enabled.
- Screen only renders black.

If Intermediate Texture is set to 'Auto' and Fovetaed Rendering - Disabled.
- Screen renders as it should, performance seems normal, but of course no benefit from foveated rendering.

Reporting a bug? please specify Unity version:
6000.3.18f1
Reporting a bug? please specify Shapes version:
4.6.0
Reporting a bug? please specify Render Pipeline:
URP