Instance Property

barycentricCoordsSupported

A Boolean value indicating whether the GPU supports barycentric coordinates.

Required.

Declaration

@property(readonly, getter=areBarycentricCoordsSupported) BOOL barycentricCoordsSupported;

Discussion

If the value of this property is YES, 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