Contents

contentionRelief

A contention relief strategy the compiler applies to the pipeline.

Declaration

var contentionRelief: MTLContentionRelief { get set }

Discussion

The contention relief strategy applies to all pipeline functions except for functions you compile separately which retain the contention relief they were compiled with.

This property sets the contention relief only for functions with a contention_relief attribute equal to default, which includes functions that don’t specify the attribute. Functions you write with the automatic or none attribute ignore this property.

The default value is MTLContentionRelief.automatic.