How to reproduce:
1. Open the “GPUResidentDrawerDrawCalls“ project
2. Open the “OutdoorsScene”
3. Make sure the “GPU Resident Drawer” is set to “Instanced Drawing” (File > Project Settings > Quality > HDRP)
4. Bake the Lightmap (Window > Rendering > Lighting > “Generate Lighting”)
5. Wait until all background tasks are completed
6. Enable the Frame Debugger (Window > Analysis > Frame Debugger > “Enable”)
7. Select the “HDRenderPipeline::Render Main Camera/ExecuteRenderGraph/GBuffer” event
8. Observe the “DrawInstanced Calls” field
Expected result: The “DrawInstanced Calls” field is set to “1”
Actual result: The “DrawInstanced Calls” field is set to “21”
Reproduced with: 2023.3.0a17
Could not test with: 2021.3.33f1, 2022.3.14f1, 2023.2.3f1 (Resident Drawer functionality is unavailable)
Reproduced on: Windows 11
Not reproducible on: No other environment tested