Metal shading language versions.
SDKs
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- Metal
Declaration
enum MTLLanguageVersion : UInt
Metal shading language versions.
SDKs
Framework
enum MTLLanguageVersion : UInt
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.
var fast Math Enabled: Bool
A Boolean value that indicates whether the compiler can perform optimizations for floating-point arithmetic that may violate the IEEE 754 standard.
var language Version: MTLLanguage Version
The language version used to interpret the library source code.
var preprocessor Macros: [String : NSObject]?
A list of preprocessor macros to apply when compiling the library source.