Documentation Archive Developer
Search

Metal Changes

Metal

Removed MTLColorWriteMask.value
Removed MTLPipelineOption.value
Removed MTLRenderPassColorAttachmentDescriptorArray.objectAtIndexedSubscript(Int) -> MTLRenderPassColorAttachmentDescriptor
Removed MTLRenderPassColorAttachmentDescriptorArray.setObject(MTLRenderPassColorAttachmentDescriptor?, atIndexedSubscript: Int)
Removed MTLRenderPipelineColorAttachmentDescriptorArray.objectAtIndexedSubscript(Int) -> MTLRenderPipelineColorAttachmentDescriptor
Removed MTLRenderPipelineColorAttachmentDescriptorArray.setObject(MTLRenderPipelineColorAttachmentDescriptor?, atIndexedSubscript: Int)
Removed MTLResourceOptions.value
Removed MTLVertexAttributeDescriptorArray.objectAtIndexedSubscript(Int) -> MTLVertexAttributeDescriptor
Removed MTLVertexAttributeDescriptorArray.setObject(MTLVertexAttributeDescriptor?, atIndexedSubscript: Int)
Removed MTLVertexBufferLayoutDescriptorArray.objectAtIndexedSubscript(Int) -> MTLVertexBufferLayoutDescriptor
Removed MTLVertexBufferLayoutDescriptorArray.setObject(MTLVertexBufferLayoutDescriptor!, atIndexedSubscript: Int)
Added MTLColorWriteMask.init(rawValue: UInt)
Added MTLPipelineOption.init(rawValue: UInt)
Added MTLResourceOptions.init(rawValue: UInt)
Modified MTLColorWriteMask [struct]
Declaration
From
struct MTLColorWriteMask : RawOptionSetType {
    init(_ value: UInt)
    var value: UInt
    static var None: MTLColorWriteMask { get }
    static var Red: MTLColorWriteMask { get }
    static var Green: MTLColorWriteMask { get }
    static var Blue: MTLColorWriteMask { get }
    static var Alpha: MTLColorWriteMask { get }
    static var All: MTLColorWriteMask { get }
}
To
struct MTLColorWriteMask : RawOptionSetType {
    init(_ rawValue: UInt)
    init(rawValue rawValue: UInt)
    static var None: MTLColorWriteMask { get }
    static var Red: MTLColorWriteMask { get }
    static var Green: MTLColorWriteMask { get }
    static var Blue: MTLColorWriteMask { get }
    static var Alpha: MTLColorWriteMask { get }
    static var All: MTLColorWriteMask { get }
}

Modified MTLColorWriteMask.init(_: UInt)
Declaration
From
init(_ value: UInt)
To
init(_ rawValue: UInt)

Modified MTLPipelineOption [struct]
Declaration
From
struct MTLPipelineOption : RawOptionSetType {
    init(_ value: UInt)
    var value: UInt
    static var None: MTLPipelineOption { get }
    static var ArgumentInfo: MTLPipelineOption { get }
    static var BufferTypeInfo: MTLPipelineOption { get }
}
To
struct MTLPipelineOption : RawOptionSetType {
    init(_ rawValue: UInt)
    init(rawValue rawValue: UInt)
    static var None: MTLPipelineOption { get }
    static var ArgumentInfo: MTLPipelineOption { get }
    static var BufferTypeInfo: MTLPipelineOption { get }
}

Modified MTLPipelineOption.init(_: UInt)
Declaration
From
init(_ value: UInt)
To
init(_ rawValue: UInt)

Modified MTLResourceOptions [struct]
Declaration
From
struct MTLResourceOptions : RawOptionSetType {
    init(_ value: UInt)
    var value: UInt
    static var OptionCPUCacheModeDefault: MTLResourceOptions { get }
    static var OptionCPUCacheModeWriteCombined: MTLResourceOptions { get }
}
To
struct MTLResourceOptions : RawOptionSetType {
    init(_ rawValue: UInt)
    init(rawValue rawValue: UInt)
    static var OptionCPUCacheModeDefault: MTLResourceOptions { get }
    static var OptionCPUCacheModeWriteCombined: MTLResourceOptions { get }
}

Modified MTLResourceOptions.init(_: UInt)
Declaration
From
init(_ value: UInt)
To
init(_ rawValue: UInt)