<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.12.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MetalKit",
  "identifier" : "/documentation/MetalKit/MTKTextureLoader/newTextures(names:scaleFactor:bundle:options:completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "MetalKit"
    ],
    "preciseIdentifier" : "c:objc(cs)MTKTextureLoader(im)newTexturesWithNames:scaleFactor:bundle:options:completionHandler:"
  },
  "title" : "newTextures(names:scaleFactor:bundle:options:completionHandler:)"
}
-->

# newTextures(names:scaleFactor:bundle:options:completionHandler:)

Asynchronously loads image data and creates Metal textures from the specified list of named texture assets in an asset catalog.

```
func newTextures(names: [String], scaleFactor: CGFloat, bundle: Bundle?, options: [MTKTextureLoader.Option : Any]? = nil, completionHandler: @escaping @Sendable ([any MTLTexture], (any Error)?) -> Void)
```

## Parameters

`names`

An array of strings, each the name of a texture in an asset catalog.

`scaleFactor`

The scale factor of texture to request.

    In iOS and tvOS, pass the     <doc://com.apple.documentation/documentation/QuartzCore/CALayer/contentsScale>     value of the view where you plan to display texture content.

    In macOS, pass the     <doc://com.apple.documentation/documentation/AppKit/NSWindow/backingScaleFactor>     value of the window where you plan to display texture content.

`bundle`

The resource bundle containing the asset catalog to load textures from.

`options`

A dictionary describing any additional texture loading steps. See `Texture Loading Options`.

    When using this method, the texture loader ignores the [`generateMipmaps`](/documentation/MetalKit/MTKTextureLoader/Option/generateMipmaps)    , [`SRGB`](/documentation/MetalKit/MTKTextureLoader/Option/SRGB)    , [`cubeLayout`](/documentation/MetalKit/MTKTextureLoader/Option/cubeLayout)    , and [`origin`](/documentation/MetalKit/MTKTextureLoader/Option/origin)     options.

`completionHandler`

A block called after all assets have been processed. See the [`MTKTextureLoader.ArrayCallback`](/documentation/MetalKit/MTKTextureLoader/ArrayCallback) signature to determine whether each texture has successfully loaded.

## Discussion

> Important:
> You can call this method from synchronous code using a completion handler, as shown on this page, or you can call it as an asynchronous method that has the following declaration:
> 
> ```swift
> func newTextures(names: [String], scaleFactor: CGFloat, bundle: Bundle?, options: [MTKTextureLoader.Option : Any]? = nil) async throws -> [MTLTexture]
> ```
> 
> For information about concurrency and asynchronous code in Swift, see <doc://com.apple.documentation/documentation/Swift/calling-objective-c-apis-asynchronously>.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)