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

# TextureTopology

A type that specifies the organization of one of the drawable’s textures.

```
struct TextureTopology
```

## Overview

Metal supports multiple organizations for the textures you use for drawing. Use this type to identify one of the organizations available to use in your app.

## Topics

### Getting the topology type

[`var textureType: MTLTextureType`](/documentation/CompositorServices/TextureTopology/textureType)

The texture type value that specifies how the underlying texture organizes its views.

### Getting the array length

[`var arrayLength: UInt64`](/documentation/CompositorServices/TextureTopology/arrayLength)

The number of items in the texture array.

### Creating a topology

[`init()`](/documentation/CompositorServices/TextureTopology/init())

Creates a texture topology.

## Relationships

### Conforms To

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

---

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)