MTKTextureLoader loading texture error on visionOS2.0

hello everyone.

I got a texture loading error on visionOS 2.0:

Can't create texture(Error Domain=MTKTextureLoaderErrorDomain Code=0 "Pixel format(MTLPixelFormatInvalid) is not valid on this device" UserInfo={NSLocalizedDescription=Pixel format(MTLPixelFormatInvalid) is not valid on this device, MTKTextureLoaderErrorKey=Pixel format(MTLPixelFormatInvalid) is not valid on this device}

But this texture can load correctly on visionOS1.3. I don't know what happen between visionOS1.3 and visionOS2.0.

The texture is a ktx file which stores cubemap that encoding in astc6x6hdr. And the ktx texture has a glInternalFormat info: GL_COMPRESSED_RGBA_ASTC_6x6.

I wonder if visionOS2.0 no longer supports astc6x6hdr cubemap format, or there is something wrong with my assets.

MTKTextureLoader loading texture error on visionOS2.0
 
 
Q