Instance Property

preprocessorMacros

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

Declaration

var preprocessorMacros: [String : NSObject]? { get set }

Discussion

The macros are specified as key/value pairs, using an NSDictionary. The keys must be NSString objects, and the values can be either NSString or NSNumber objects.

The default value is nil.

See Also

Specifying Compiler Options

var fastMathEnabled: Bool

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

var languageVersion: MTLLanguageVersion

The language version used to interpret the library source code.

enum MTLLanguageVersion

Metal shading language versions.