How to get dirtyRect from SCScreenshotManager.captureSameplBuffer on Sonoma?

Hey, how can I retrieve dirtyRect from SCScreenshotManager.captureSampleBuffer?

With streaming method, I can get it via attachments, but attachments are missing when using the SCScreenshotManager.

If I have to compute it manually, would would be the most performant way of doing so?

How to get dirtyRect from SCScreenshotManager.captureSameplBuffer on Sonoma?
 
 
Q