void DrawShapes( Camera cam ) creates small GC allocation every frame

Avatar

Hello,

I have a script that inherits from ImmediateModeShapeDrawer. Even with this function that does nothing, I have a 232B GC alloc every frame, would any one know why, and how I can fix it?

public override void DrawShapes( Camera cam ){
using( Draw.Command( cam, renderPass ) )
{ return; }

Image 893

Image 894

Thanks!


Reporting a bug? please specify Unity version:
2022.3.59f1
Reporting a bug? please specify Shapes version:
4.5.0
Reporting a bug? please specify Render Pipeline:
URP