<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ModelIO",
  "identifier" : "/documentation/ModelIO/MDLAsset/init(url:vertexDescriptor:bufferAllocator:)-1tchi",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Model I/O"
    ],
    "preciseIdentifier" : "c:objc(cs)MDLAsset(im)initWithURL:vertexDescriptor:bufferAllocator:"
  },
  "title" : "init(url:vertexDescriptor:bufferAllocator:)"
}
-->

# init(url:vertexDescriptor:bufferAllocator:)

Initializes an asset from the file at the specified URL, using the specified vertex descriptor and buffer allocator.

```
init(url URL: URL?, vertexDescriptor: MDLVertexDescriptor?, bufferAllocator: (any MDLMeshBufferAllocator)?)
```

## Parameters

`URL`

A URL specifying the location an asset file.

`vertexDescriptor`

An object describing the vertex data format to be loaded from the asset, or `nil` to use the asset’s vertex buffers as found in the file.

`bufferAllocator`

The allocator object to use for loading mesh data from the asset, or `nil` to use a default allocator.

## Return Value

A new asset object.

## Discussion

Using this initializer is equivalent to using the [`init(url:vertexDescriptor:bufferAllocator:preserveTopology:error:)`](/documentation/ModelIO/MDLAsset/init(url:vertexDescriptor:bufferAllocator:preserveTopology:error:)-510xi) initializer, passing <doc://com.apple.documentation/documentation/Swift/false> for the `preserveTopology` parameter and ignoring errors.

---

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)