---
title: type
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlargument/type
---

# type

The argument’s resource type.

## Declaration

```swift
var type: MTLArgumentType { get }
```

## Discussion

Discussion This property indicates which type of resource is used (buffer, texture, sampler, or threadgroup memory) in the shading language code. For information on possible values, see MTLArgumentType.

## See Also

### Describing the argument

- [name](metal/mtlargument/name.md)
- [isActive](metal/mtlargument/isactive.md)
- [index](metal/mtlargument/index.md)
- [access](metal/mtlargument/access.md)
