A sample position on a subpixel grid.
SDKs
- iOS 11.0+
- macOS 10.13+
- Mac Catalyst 13.0+
- tvOS 11.0+
Framework
- Metal
Declaration
typedef struct {
...
} MTLSamplePosition;
Overview
Floating-point values are in the [0
range along each axis, with the origin (0, 0)
defined at the top-left corner. Values can be set from 0/16
up to 15/16
, inclusive, in 0/16
increments along each axis.