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

# textureLocation(named:)

Returns the argument table texture slot index for the named texture parameter, or `nil`
if no parameter with that name exists.

```
func textureLocation(named name: String) -> Int?
```

## Parameters

`name`

The name of the texture parameter as declared in the Metal shader.

## Return Value

The texture slot index, or `nil` if no texture parameter with that name exists.

---

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)