How to display HDR image or play HDR videos in VisionPro using Xcode swift

Hi, I am new to Swift and would like to write a simple Swift script to show some HDR images or video on my VisionPro. I tried to find some code online as shown in the attachment to put one HDR image and one SDR side by side, but it seems like not to take any HDR effect. Thanks in advance.

How to display HDR image or play HDR videos in VisionPro using Xcode swift
 
 
Q