---
title: "textureLocation(named:)"
framework: realitykit
role: symbol
role_heading: Instance Method
path: "realitykit/lowlevelmaterialparametermapping/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.

## Declaration

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

## Parameters

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

## Return Value

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

## See Also

### Locating parameters

- [bufferLocation(named:)](realitykit/lowlevelmaterialparametermapping/bufferlocation(named:).md)
- [constantLocation(named:)](realitykit/lowlevelmaterialparametermapping/constantlocation(named:).md)
- [LowLevelMaterialParameterMapping.ConstantLocation](realitykit/lowlevelmaterialparametermapping/constantlocation.md)
