Documentation Archive Developer
Search

Metal Changes for Swift

Metal (Added)

Added MTLBlitOption.init(rawValue: UInt)
Added MTLBuffer
Added MTLClearColor.init()
Added MTLClearColor.init(red: Double, green: Double, blue: Double, alpha: Double)
Added MTLColorWriteMask.init(rawValue: UInt)
Added MTLDevice
Added MTLDispatchThreadgroupsIndirectArguments.init()
Added MTLDispatchThreadgroupsIndirectArguments.init(threadgroupsPerGrid: (UInt32, UInt32, UInt32))
Added MTLDrawIndexedPrimitivesIndirectArguments.init()
Added MTLDrawIndexedPrimitivesIndirectArguments.init(indexCount: UInt32, instanceCount: UInt32, indexStart: UInt32, baseVertex: Int32, baseInstance: UInt32)
Added MTLDrawPrimitivesIndirectArguments.init()
Added MTLDrawPrimitivesIndirectArguments.init(vertexCount: UInt32, instanceCount: UInt32, vertexStart: UInt32, baseInstance: UInt32)
Added MTLFeatureSet.OSX_GPUFamily1_v1
Added MTLOrigin.init()
Added MTLOrigin.init(x: Int, y: Int, z: Int)
Added MTLPipelineOption.init(rawValue: UInt)
Added MTLRegion.init()
Added MTLRegion.init(origin: MTLOrigin, size: MTLSize)
Added MTLRenderPipelineError [enum]
Added MTLRenderPipelineError.Internal
Added MTLRenderPipelineError.InvalidInput
Added MTLRenderPipelineError.Unsupported
Added MTLResourceOptions.init(rawValue: UInt)
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 MTLTextureUsage.init(rawValue: UInt)
Added MTLViewport.init()
Added MTLViewport.init(originX: Double, originY: Double, width: Double, height: Double, znear: Double, zfar: Double)
Added MTLRenderPipelineErrorDomain
Added MTLResourceCPUCacheModeShift
Added MTLResourceStorageModeShift