Instance Property

areBarycentricCoordsSupported

A Boolean value indicating whether the GPU supports barycentric coordinates.

Required.

Declaration

var areBarycentricCoordsSupported: Bool { get }

Discussion

If the value of this property is true, you may use the [[barycentric_coord]] and [[primitive_id]] keywords on arguments to a fragment shader to receive barycentric coordinates and primitive information. See Metal Shading Language specification.

See Also

Querying Barycentric Coordinate Support