Instance Property

languageVersion

The language version used to interpret the library source code.

Declaration

var languageVersion: MTLLanguageVersion { get set }

Discussion

By default, Metal uses the most recent language version.

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.

enum MTLLanguageVersion

Metal shading language versions.

var preprocessorMacros: [String : NSObject]?

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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software