Documentation Archive Developer
Search

Metal Changes

Metal

Added MTLClearColor.init()
Added MTLClearColor.init(red: Double, green: Double, blue: Double, alpha: Double)
Added MTLComputeCommandEncoder.setBufferOffset(Int, atIndex: Int)
Added MTLComputeCommandEncoder.setBytes(UnsafePointer<Void>, length: Int, atIndex: Int)
Added MTLOrigin.init()
Added MTLOrigin.init(x: Int, y: Int, z: Int)
Added MTLRegion.init()
Added MTLRegion.init(origin: MTLOrigin, size: MTLSize)
Added MTLRenderCommandEncoder.setFragmentBufferOffset(Int, atIndex: Int)
Added MTLRenderCommandEncoder.setFragmentBytes(UnsafePointer<Void>, length: Int, atIndex: Int)
Added MTLRenderCommandEncoder.setVertexBufferOffset(Int, atIndex: Int)
Added MTLRenderCommandEncoder.setVertexBytes(UnsafePointer<Void>, length: Int, atIndex: Int)
Added MTLScissorRect.init()
Added MTLScissorRect.init(x: Int, y: Int, width: Int, height: Int)
Added MTLSize.init()
Added MTLSize.init(width: Int, height: Int, depth: Int)
Added MTLVertexAttribute.attributeType
Added MTLViewport.init()
Added MTLViewport.init(originX: Double, originY: Double, width: Double, height: Double, znear: Double, zfar: Double)
Modified MTLClearColor [struct]
Declaration
From
struct MTLClearColor {
    var red: Double
    var green: Double
    var blue: Double
    var alpha: Double
}
To
struct MTLClearColor {
    var red: Double
    var green: Double
    var blue: Double
    var alpha: Double
    init()
    init(red red: Double, green green: Double, blue blue: Double, alpha alpha: Double)
}

Modified MTLOrigin [struct]
Declaration
From
struct MTLOrigin {
    var x: Int
    var y: Int
    var z: Int
}
To
struct MTLOrigin {
    var x: Int
    var y: Int
    var z: Int
    init()
    init(x x: Int, y y: Int, z z: Int)
}

Modified MTLRegion [struct]
Declaration
From
struct MTLRegion {
    var origin: MTLOrigin
    var size: MTLSize
}
To
struct MTLRegion {
    var origin: MTLOrigin
    var size: MTLSize
    init()
    init(origin origin: MTLOrigin, size size: MTLSize)
}

Modified MTLScissorRect [struct]
Declaration
From
struct MTLScissorRect {
    var x: Int
    var y: Int
    var width: Int
    var height: Int
}
To
struct MTLScissorRect {
    var x: Int
    var y: Int
    var width: Int
    var height: Int
    init()
    init(x x: Int, y y: Int, width width: Int, height height: Int)
}

Modified MTLSize [struct]
Declaration
From
struct MTLSize {
    var width: Int
    var height: Int
    var depth: Int
}
To
struct MTLSize {
    var width: Int
    var height: Int
    var depth: Int
    init()
    init(width width: Int, height height: Int, depth depth: Int)
}

Modified MTLViewport [struct]
Declaration
From
struct MTLViewport {
    var originX: Double
    var originY: Double
    var width: Double
    var height: Double
    var znear: Double
    var zfar: Double
}
To
struct MTLViewport {
    var originX: Double
    var originY: Double
    var width: Double
    var height: Double
    var znear: Double
    var zfar: Double
    init()
    init(originX originX: Double, originY originY: Double, width width: Double, height height: Double, znear znear: Double, zfar zfar: Double)
}

Modified MTLCommandBufferErrorDomain
Declaration
From
let MTLCommandBufferErrorDomain: NSString!
To
let MTLCommandBufferErrorDomain: String

Modified MTLLibraryErrorDomain
Declaration
From
let MTLLibraryErrorDomain: NSString!
To
let MTLLibraryErrorDomain: String

Modified MTLRenderPipelineErrorDomain
Declaration
From
let MTLRenderPipelineErrorDomain: NSString!
To
let MTLRenderPipelineErrorDomain: String