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

# textureDataType

The data type of a texture argument.

## Declaration

```swift
var textureDataType: MTLDataType { get }
```

## Discussion

Discussion For information on possible values, see MTLDataType. If the argument is not a texture, querying this property is a fatal error.

## See Also

### Describing a texture argument

- [textureType](metal/mtlargument/texturetype.md)
- [isDepthTexture](metal/mtlargument/isdepthtexture.md)
