FrameCapture
A frame read back from the GPU for the captures queued with Window.capture. Recorded by CommandBuffer.recordCaptureOrNull into the frame's command buffer; once that buffer has been submitted and its fence waited on, save writes the PNG files and frees the read-back memory.
Functions
Link copied to clipboard
Writes the captured frame to every path queued for it, as a PNG file with every pixel opaque, and frees the read-back memory. Call it once, after the command buffer the capture was recorded into has been submitted with CommandBuffer.submitAndAcquireFence and GpuDevice.waitFor has returned for that fence; earlier, the memory does not hold the frame yet.