<!--
{
  "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/MDLURLTexture",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Model I/O"
    ],
    "preciseIdentifier" : "c:objc(cs)MDLURLTexture"
  },
  "title" : "MDLURLTexture"
}
-->

# MDLURLTexture

A lightweight reference to a URL from which to load texture data.

```
class MDLURLTexture
```

## Overview

Unlike the superclass [`MDLTexture`](/documentation/ModelIO/MDLTexture), the [`MDLURLTexture`](/documentation/ModelIO/MDLURLTexture) class loads texel data from the file at that URL only when that data is first referenced, and then caches it for future use.

## Topics

### Creating a URL Texture

[`-  initWithURL:name:`](/documentation/ModelIO/MDLURLTexture/init(url:name:)-1y03u)

Initializes a texture that loads its texel data from a file at the specified URL.

### Inspecting the Texture URL

[`URL`](/documentation/ModelIO/MDLURLTexture/url)

The URL from which to load texture data.

## Relationships

### Conforms To

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`MDLNamed`](/documentation/ModelIO/MDLNamed)

[`Hashable`](/documentation/Swift/Hashable)

[`CVarArg`](/documentation/Swift/CVarArg)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

### Inherits From

[`MDLTexture`](/documentation/ModelIO/MDLTexture)

---

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)