init
TypeScriptstatic init(device: SDKHandle): MTKTextureLoaderSwift declarationinit(device: any MTLDevice)class · iOS 9.0+ · SDK 27.1
class MTKTextureLoaderstatic init(device: SDKHandle): MTKTextureLoaderSwift declarationinit(device: any MTLDevice)newTextureCgImageOptionsCompletionHandler(cgImage: _CoreGraphics_CGImage, options: (NativeMap<MTKTextureLoader_Option, unknown>) | null, completionHandler: ((arg0: (SDKHandle) | null, arg1: (NativeError) | null) => void)): voidSwift declarationfunc newTexture(cgImage: CGImage, options: [MTKTextureLoader.Option : Any]? = nil) async throws -> any MTLTexturenewTextureCgImageOptions(cgImage: _CoreGraphics_CGImage, options?: (NativeMap<MTKTextureLoader_Option, unknown>) | null): SDKHandleSwift declarationfunc newTexture(cgImage: CGImage, options: [MTKTextureLoader.Option : Any]? = nil) throws -> any MTLTexturenewTextureURLOptionsCompletionHandler(URL: string, options: (NativeMap<MTKTextureLoader_Option, unknown>) | null, completionHandler: ((arg0: (SDKHandle) | null, arg1: (NativeError) | null) => void)): voidSwift declarationfunc newTexture(URL: URL, options: [MTKTextureLoader.Option : Any]? = nil) async throws -> any MTLTexturenewTextureURLOptions(URL: string, options?: (NativeMap<MTKTextureLoader_Option, unknown>) | null): SDKHandleSwift declarationfunc newTexture(URL: URL, options: [MTKTextureLoader.Option : Any]? = nil) throws -> any MTLTexturenewTextureDataOptionsCompletionHandler(data: ArrayBuffer, options: (NativeMap<MTKTextureLoader_Option, unknown>) | null, completionHandler: ((arg0: (SDKHandle) | null, arg1: (NativeError) | null) => void)): voidSwift declarationfunc newTexture(data: Data, options: [MTKTextureLoader.Option : Any]? = nil) async throws -> any MTLTexturenewTextureDataOptions(data: ArrayBuffer, options?: (NativeMap<MTKTextureLoader_Option, unknown>) | null): SDKHandleSwift declarationfunc newTexture(data: Data, options: [MTKTextureLoader.Option : Any]? = nil) throws -> any MTLTexturenewTextureTextureOptionsCompletionHandler(texture: _ModelIO_MDLTexture, options: (NativeMap<MTKTextureLoader_Option, unknown>) | null, completionHandler: ((arg0: (SDKHandle) | null, arg1: (NativeError) | null) => void)): voidSwift declarationfunc newTexture(texture: MDLTexture, options: [MTKTextureLoader.Option : Any]? = nil) async throws -> any MTLTexturenewTextureTextureOptions(texture: _ModelIO_MDLTexture, options?: (NativeMap<MTKTextureLoader_Option, unknown>) | null): SDKHandleSwift declarationfunc newTexture(texture: MDLTexture, options: [MTKTextureLoader.Option : Any]? = nil) throws -> any MTLTexturenewTextureNameScaleFactorBundleOptionsCompletionHandler(name: string, scaleFactor: number, bundle: (_Foundation_Bundle) | null, options: (NativeMap<MTKTextureLoader_Option, unknown>) | null, completionHandler: ((arg0: (SDKHandle) | null, arg1: (NativeError) | null) => void)): voidSwift declarationfunc newTexture(name: String, scaleFactor: CGFloat, bundle: Bundle?, options: [MTKTextureLoader.Option : Any]? = nil) async throws -> any MTLTexturenewTextureNameScaleFactorBundleOptions(name: string, scaleFactor: number, bundle?: (_Foundation_Bundle) | null, options?: (NativeMap<MTKTextureLoader_Option, unknown>) | null): SDKHandleSwift declarationfunc newTexture(name: String, scaleFactor: CGFloat, bundle: Bundle?, options: [MTKTextureLoader.Option : Any]? = nil) throws -> any MTLTexturenewTexturesURLsOptionsCompletionHandler(URLs: Array<string>, options: (NativeMap<MTKTextureLoader_Option, unknown>) | null, completionHandler: ((arg0: Array<SDKHandle>, arg1: (NativeError) | null) => void)): voidSwift declarationfunc newTextures(URLs: [URL], options: [MTKTextureLoader.Option : Any]? = nil) async throws -> [any MTLTexture]newTexturesURLsOptionsError(URLs: Array<string>, options?: (NativeMap<MTKTextureLoader_Option, unknown>) | null): { $ret: Array<SDKHandle>; $out: { "error": (_Foundation_NSError) | null } }Swift declarationfunc newTextures(URLs: [URL], options: [MTKTextureLoader.Option : Any]? = nil, error: NSErrorPointer) -> [any MTLTexture]Omit the output parameters from the call. The result contains $ret and $out, with error inside $out.
newTexturesNamesScaleFactorBundleOptionsCompletionHandler(names: Array<string>, scaleFactor: number, bundle: (_Foundation_Bundle) | null, options: (NativeMap<MTKTextureLoader_Option, unknown>) | null, completionHandler: ((arg0: Array<SDKHandle>, arg1: (NativeError) | null) => void)): voidSwift declarationfunc newTextures(names: [String], scaleFactor: CGFloat, bundle: Bundle?, options: [MTKTextureLoader.Option : Any]? = nil) async throws -> [any MTLTexture]get device(): SDKHandleSwift declarationvar device: any MTLDevice { get }1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
MTKTextureLoader.init()
inherited init: cannot prove legal (class declares 1 custom initializer)