How to program snapshots in visionOS

I found some snapshot API in developer documents, like blows:

RealityKit / Views and attachments / ARView / /snapshot(saveToHDR:completion:)

SceneKit / SCNView / snapshot()

Is there a similar API in visionOS?and if not, how can I implement snapshot for realityview and usdz?

How to program snapshots in visionOS
 
 
Q