This demo uploads a PNG image as texture data and uses it on the faces of a cube.
Make sure you are on a system with WebGPU enabled. In Safari, first make sure the Developer Menu is visible (Preferences > Advanced), then Develop > Experimental Features > WebGPU.
In addition, you must be using Safari Technology Preview 92 or above. You can get the latest STP here.