<!--
{
  "availability" : [
    "iOS: 5.0.0 - 12.0.0",
    "iPadOS: 5.0.0 - 12.0.0",
    "macOS: 10.8.0 - 10.14.0",
    "tvOS: 9.0.0 - 12.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "GLKit",
  "identifier" : "/documentation/GLKit/GLKBaseEffect/textureOrder",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "GLKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GLKBaseEffect(py)textureOrder"
  },
  "title" : "textureOrder"
}
-->

# textureOrder

The order in which textures are applied to rendered primitives.

```
var textureOrder: [GLKEffectPropertyTexture]? { get set }
```

## Discussion

The value of this property should be an array whose contents are all [`GLKEffectPropertyTexture`](/documentation/GLKit/GLKEffectPropertyTexture) objects provided by the effect. The order of these objects in the array determines the order in which the textures are applied in the shader. For example, to reverse the order that the textures are applied to a scene, your application would use the following code:

```objc
baseEffect.textureOrder = [NSArray arrayWithObjects: baseEffect.texture2d1, baseEffect.texture2d0, nil];
```

The default value is an array that executes the texture stages in increasing order, skipping any texture stages that are not enabled.

---

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)