<!--
{
  "availability" : [
    "macOS: 26.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CompositorServices",
  "identifier" : "/documentation/CompositorServices/TextureTopology/arrayLength",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Compositor Services",
      "CompositorServices"
    ],
    "preciseIdentifier" : "c:@F@cp_texture_topology_get_array_length"
  },
  "title" : "arrayLength"
}
-->

# arrayLength

The number of items in the texture array.

```
var arrayLength: UInt64 { get }
```

## Discussion

Array-based texture types such as
<doc://com.apple.documentation/documentation/Metal/MTLTextureType/type2DArray>
manage one or more images of the same size.
The array length represents the number of separate images the texture manages.
Other array types store only one image.

---

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)