How to reproduce:
1. Download and open the attached project
2. Build and run the project on visionOS
3. Observe the crash
RequestCreateTexture
SetupRenderTextureFromXRRequest (id: 1 col: 0x60000190b240 d: 0x6000018f6280 sr: 0x0)
RenderTexture::Create (id: 1)
Requested RenderTexture with sRGB format. sRGB formats are not supported in gamma mode, fallback to a UNorm format. Use a UNorm format instead of sRGB to silence this warning.
IVRDeviceCallback_CreateEyeTextureResources 0x60000190b240
IVRDeviceCallback_CreateEyeTextureResources 0x6000018f6280
-[MTLTextureDescriptorInternal validateWithDevice:], line 1357: error 'Texture Descriptor Validation
MTLTextureDescriptor has invalid pixelFormat (0).
'
-[MTLTextureDescriptorInternal validateWithDevice:]:1357: failed assertion `Texture Descriptor Validation
MTLTextureDescriptor has invalid pixelFormat (0).