Open brian-telintelo-kr opened 3 years ago
Any luck on this? I cant figure out where in the library is causing it.
Maximum texture is related to device: try this code to check.
`
static var max1DTextureWidth: Int = { var maxLength = 8192;
// It's recommended to use your physical device
let device = MTLCreateSystemDefaultDevice()!
if device.supportsFamily(.apple1) || device.supportsFamily(.apple2) {
maxLength = 8192 // A7 and A8 chips
} else {
maxLength = 16384 // A9 and later chips
}
return maxLength
}()
`
[MTLTextureDescriptorInternal validateWithDevice:]:1325: failed assertion `Texture Descriptor Validation
MTLTextureDescriptor has width (8704) greater than the maximum allowed size of 8192.
This was using an image taken from an Android phone.