You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered: