---
title: textureOrder
framework: GLKit
role: symbol
role_heading: Instance Property
platforms: [iOS 5.0+, iPadOS 5.0+, macOS 10.8+, tvOS 9.0+]
path: glkit/glkbaseeffect/textureorder
---

# textureOrder

The order in which textures are applied to rendered primitives.

## Declaration

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

## Discussion

Discussion The value of this property should be an array whose contents are all 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: 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.

## See Also

### Configuring Textures

- [texture2d0](glkit/glkbaseeffect/texture2d0.md)
- [texture2d1](glkit/glkbaseeffect/texture2d1.md)
