You should see -[MTLTextureDescriptorInternal validateWithDevice:]:1405: failed assertionTexture Descriptor Validation MTLTextureDescriptor has invalid pixelFormat (255).'`
Expected behavior
It should use the correct pixel format.
Because of the way things are setup you can't call TextureUtility.GetBestSupportedDepthFormat() when initializing the GraphicsDeviceOptions
Describe the bug We don't know what is the best supported PixelFormat is until we create a graphics device, but for some reason we do:
To Reproduce Steps to reproduce the behavior:
-[MTLTextureDescriptorInternal validateWithDevice:]:1405: failed assertion
Texture Descriptor Validation MTLTextureDescriptor has invalid pixelFormat (255).'`Expected behavior It should use the correct pixel format.
Because of the way things are setup you can't call
TextureUtility.GetBestSupportedDepthFormat()
when initializing theGraphicsDeviceOptions