Instance Property


A Boolean value that indicates whether the compiler can perform optimizations for floating-point arithmetic that may violate the IEEE 754 standard.


var fastMathEnabled: Bool { get set }


The default value is true. A true value also enables the high-precision variant of math functions for single-precision floating-point scalar and vector types.

See Also

Specifying Compiler Options

var languageVersion: MTLLanguageVersion

The language version used to interpret the library source code.

enum MTLLanguageVersion

Metal shading language versions.

var preprocessorMacros: [String : NSObject]?

A list of preprocessor macros to apply when compiling the library source.