Contents

supportsShaderBarycentricCoordinates

A Boolean value that indicates whether the GPU supports barycentric coordinates.

Declaration

var supportsShaderBarycentricCoordinates: Bool { get }

Discussion

If a GPU device supports barycentric coordinates, a fragment shader can receive them by adding the [[barycentric_coord]] attribute to one of its arguments. See the Metal Shading Language specification and Detecting GPU features and Metal software versions for more information.

See Also

Checking render support