<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/LowLevelArgumentTable/setTexture(_:at:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:19RealityCoreRenderer21LowLevelArgumentTableC10setTexture_2atyAA0deI8ResourceC_SitAA0dE18RenderContextErrorVYKF"
  },
  "title" : "setTexture(_:at:)"
}
-->

# setTexture(_:at:)

Binds a texture to the slot at the given index.

```
final func setTexture(_ texture: LowLevelTextureResource, at index: Int) throws(LowLevelRenderContextError)
```

## Parameters

`texture`

The texture resource to bind to the slot.

`index`

The slot index within the argument table’s texture array.

## Discussion> Throws: ``doc://com.apple.RealityKit/documentation/RealityKit/LowLevelRenderContextError`` if `index` is out of range or `texture` is incompatible with the slot.

---

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)