Enumeration

MTLLanguageVersion

Metal shading language versions.

Declaration

enum MTLLanguageVersion : UInt

Topics

Version Numbers

case version1_0

Version 1.0 of the Metal shading language.

case version1_1

Version 1.1 of the Metal shading language.

case version1_2

Version 1.2 of the Metal shading language.

case version2_0

Version 2.0 of the Metal shading language.

case version2_1

Version 2.1 of the Metal shading language.

case version2_2

Version 2.2 of the Metal shading language.

Beta

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.

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