---
title: y
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlsampleposition/y
---

# y

The y position of the sample on the subpixel grid.

## Declaration

```swift
var y: Float
```
