Instance Property

screenSize

The size of the viewport coordinate system, in logical pixels.

Declaration

@property(nonatomic) MTLSize screenSize;

Discussion

Metal ignores the depth component of this property.

The viewport coordinate system’s origin is always at (0,0) and this property determines its size.