Metal Changes for Swift
Metal (Added)
Added MTLArgument
Added MTLArgument.access
Added MTLArgument.active
Added MTLArgument.index
Added MTLArgument.name
Added MTLArgument.textureType
Added MTLArgument.type
Added MTLArgumentAccess [enum]
Added MTLArgumentType [enum]
Added MTLArgumentType.Buffer
Added MTLArgumentType.Sampler
Added MTLArgumentType.Texture
Added MTLArrayType
Added MTLArrayType.arrayLength
Added MTLArrayType.elementType
Added MTLArrayType.stride
Added MTLBlendFactor [enum]
Added MTLBlendFactor.One
Added MTLBlendFactor.Zero
Added MTLBlendOperation [enum]
Added MTLBlendOperation.Add
Added MTLBlendOperation.Max
Added MTLBlendOperation.Min
Added MTLBlitCommandEncoder
Added MTLBlitOption [struct]
Added MTLBlitOption.init(rawValue: UInt)
Added MTLBlitOption.None
Added MTLBuffer
Added MTLBuffer.length
Added MTLClearColor [struct]
Added MTLClearColor.alpha
Added MTLClearColor.blue
Added MTLClearColor.green
Added MTLClearColor.init()
Added MTLClearColor.init(red: Double, green: Double, blue: Double, alpha: Double)
Added MTLClearColor.red
Added MTLColorWriteMask.All
Added MTLColorWriteMask.Alpha
Added MTLColorWriteMask.Blue
Added MTLColorWriteMask.Green
Added MTLColorWriteMask.init(rawValue: UInt)
Added MTLColorWriteMask.None
Added MTLColorWriteMask.Red
Added MTLCommandBuffer
Added MTLCommandBuffer.device
Added MTLCommandBuffer.error
Added MTLCommandBuffer.label
Added MTLCommandBuffer.status
Added MTLCommandEncoder
Added MTLCommandEncoder.device
Added MTLCommandEncoder.label
Added MTLCommandQueue
Added MTLCommandQueue.device
Added MTLCommandQueue.label
Added MTLCompareFunction.Equal
Added MTLCompareFunction.Less
Added MTLCompareFunction.Never
Added MTLCompileOptions
Added MTLComputeCommandEncoder
Added MTLComputeCommandEncoder.setSamplerStates(_: UnsafePointer<MTLSamplerState?>, withRange: NSRange)
Added MTLComputePipelineState
Added MTLCPUCacheMode [enum]
Added MTLCullMode [enum]
Added MTLCullMode.Back
Added MTLCullMode.Front
Added MTLCullMode.None
Added MTLDataType [enum]
Added MTLDataType.Array
Added MTLDataType.Bool
Added MTLDataType.Bool2
Added MTLDataType.Bool3
Added MTLDataType.Bool4
Added MTLDataType.Char
Added MTLDataType.Char2
Added MTLDataType.Char3
Added MTLDataType.Char4
Added MTLDataType.Float
Added MTLDataType.Float2
Added MTLDataType.Float2x2
Added MTLDataType.Float2x3
Added MTLDataType.Float2x4
Added MTLDataType.Float3
Added MTLDataType.Float3x2
Added MTLDataType.Float3x3
Added MTLDataType.Float3x4
Added MTLDataType.Float4
Added MTLDataType.Float4x2
Added MTLDataType.Float4x3
Added MTLDataType.Float4x4
Added MTLDataType.Half
Added MTLDataType.Half2
Added MTLDataType.Half2x2
Added MTLDataType.Half2x3
Added MTLDataType.Half2x4
Added MTLDataType.Half3
Added MTLDataType.Half3x2
Added MTLDataType.Half3x3
Added MTLDataType.Half3x4
Added MTLDataType.Half4
Added MTLDataType.Half4x2
Added MTLDataType.Half4x3
Added MTLDataType.Half4x4
Added MTLDataType.Int
Added MTLDataType.Int2
Added MTLDataType.Int3
Added MTLDataType.Int4
Added MTLDataType.None
Added MTLDataType.Short
Added MTLDataType.Short2
Added MTLDataType.Short3
Added MTLDataType.Short4
Added MTLDataType.Struct
Added MTLDataType.UChar
Added MTLDataType.UChar2
Added MTLDataType.UChar3
Added MTLDataType.UChar4
Added MTLDataType.UInt
Added MTLDataType.UInt2
Added MTLDataType.UInt3
Added MTLDataType.UInt4
Added MTLDataType.UShort
Added MTLDataType.UShort2
Added MTLDataType.UShort3
Added MTLDataType.UShort4
Added MTLDepthClipMode [enum]
Added MTLDepthClipMode.Clamp
Added MTLDepthClipMode.Clip
Added MTLDepthStencilState
Added MTLDevice
Added MTLDevice.headless
Added MTLDevice.lowPower
Added MTLDevice.name
Added MTLDevice.newComputePipelineStateWithFunction(_: MTLFunction) throws -> MTLComputePipelineState
Added MTLDevice.newDepthStencilStateWithDescriptor(_: MTLDepthStencilDescriptor) -> MTLDepthStencilState
Added MTLDispatchThreadgroupsIndirectArguments.init()
Added MTLDispatchThreadgroupsIndirectArguments.init(threadgroupsPerGrid: (UInt32, UInt32, UInt32))
Added MTLDrawable
Added MTLDrawable.present()
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 [enum]
Added MTLFeatureSet.OSX_GPUFamily1_v1
Added MTLFunction
Added MTLFunction.device
Added MTLFunction.functionType
Added MTLFunction.name
Added MTLFunctionType [enum]
Added MTLFunctionType.Fragment
Added MTLFunctionType.Kernel
Added MTLFunctionType.Vertex
Added MTLIndexType [enum]
Added MTLIndexType.UInt16
Added MTLIndexType.UInt32
Added MTLLibrary
Added MTLLibrary.device
Added MTLLibrary.functionNames
Added MTLLibrary.label
Added MTLLibraryError [enum]
Added MTLLibraryError.Internal
Added MTLLoadAction [enum]
Added MTLLoadAction.Clear
Added MTLLoadAction.DontCare
Added MTLLoadAction.Load
Added MTLOrigin [struct]
Added MTLOrigin.init()
Added MTLOrigin.init(x: Int, y: Int, z: Int)
Added MTLOrigin.x
Added MTLOrigin.y
Added MTLOrigin.z
Added MTLPipelineOption.init(rawValue: UInt)
Added MTLPipelineOption.None
Added MTLPixelFormat [enum]
Added MTLPixelFormat.A8Unorm
Added MTLPixelFormat.BC1_RGBA
Added MTLPixelFormat.BC2_RGBA
Added MTLPixelFormat.BC3_RGBA
Added MTLPixelFormat.BGRG422
Added MTLPixelFormat.GBGR422
Added MTLPixelFormat.Invalid
Added MTLPixelFormat.R16Float
Added MTLPixelFormat.R16Sint
Added MTLPixelFormat.R16Snorm
Added MTLPixelFormat.R16Uint
Added MTLPixelFormat.R16Unorm
Added MTLPixelFormat.R32Float
Added MTLPixelFormat.R32Sint
Added MTLPixelFormat.R32Uint
Added MTLPixelFormat.R8Sint
Added MTLPixelFormat.R8Snorm
Added MTLPixelFormat.R8Uint
Added MTLPixelFormat.R8Unorm
Added MTLPixelFormat.RG16Float
Added MTLPixelFormat.RG16Sint
Added MTLPixelFormat.RG16Snorm
Added MTLPixelFormat.RG16Uint
Added MTLPixelFormat.RG16Unorm
Added MTLPixelFormat.RG32Float
Added MTLPixelFormat.RG32Sint
Added MTLPixelFormat.RG32Uint
Added MTLPixelFormat.RG8Sint
Added MTLPixelFormat.RG8Snorm
Added MTLPixelFormat.RG8Uint
Added MTLPixelFormat.RG8Unorm
Added MTLPixelFormat.RGBA8Sint
Added MTLPixelFormat.RGBA8Uint
Added MTLPixelFormat.Stencil8
Added MTLPrimitiveType [enum]
Added MTLPrimitiveType.Line
Added MTLPrimitiveType.Point
Added MTLPurgeableState [enum]
Added MTLPurgeableState.Empty
Added MTLRegion [struct]
Added MTLRegion.init()
Added MTLRegion.init(origin: MTLOrigin, size: MTLSize)
Added MTLRegion.origin
Added MTLRegion.size
Added MTLRenderCommandEncoder
Added MTLRenderCommandEncoder.drawPrimitives(_: MTLPrimitiveType, vertexStart: Int, vertexCount: Int)
Added MTLRenderCommandEncoder.setFragmentTextures(_: UnsafePointer<MTLTexture?>, withRange: NSRange)
Added MTLRenderPassDescriptor
Added MTLRenderPipelineError [enum]
Added MTLRenderPipelineError.Internal
Added MTLRenderPipelineError.InvalidInput
Added MTLRenderPipelineError.Unsupported
Added MTLRenderPipelineState
Added MTLResource
Added MTLResource.cpuCacheMode
Added MTLResource.device
Added MTLResource.label
Added MTLResource.storageMode
Added MTLResourceOptions.init(rawValue: UInt)
Added MTLSamplerDescriptor
Added MTLSamplerState
Added MTLSamplerState.device
Added MTLSamplerState.label
Added MTLScissorRect [struct]
Added MTLScissorRect.height
Added MTLScissorRect.init()
Added MTLScissorRect.init(x: Int, y: Int, width: Int, height: Int)
Added MTLScissorRect.width
Added MTLScissorRect.x
Added MTLScissorRect.y
Added MTLSize [struct]
Added MTLSize.depth
Added MTLSize.height
Added MTLSize.init()
Added MTLSize.init(width: Int, height: Int, depth: Int)
Added MTLSize.width
Added MTLStencilDescriptor
Added MTLStencilOperation.Keep
Added MTLStencilOperation.Zero
Added MTLStorageMode [enum]
Added MTLStorageMode.Managed
Added MTLStorageMode.Private
Added MTLStorageMode.Shared
Added MTLStoreAction [enum]
Added MTLStoreAction.DontCare
Added MTLStoreAction.Store
Added MTLStructMember
Added MTLStructMember.dataType
Added MTLStructMember.name
Added MTLStructMember.offset
Added MTLStructType
Added MTLStructType.members
Added MTLTexture
Added MTLTexture.arrayLength
Added MTLTexture.depth
Added MTLTexture.height
Added MTLTexture.iosurface
Added MTLTexture.parentTexture
Added MTLTexture.pixelFormat
Added MTLTexture.rootResource
Added MTLTexture.sampleCount
Added MTLTexture.textureType
Added MTLTexture.usage
Added MTLTexture.width
Added MTLTextureDescriptor
Added MTLTextureType [enum]
Added MTLTextureType.Type1D
Added MTLTextureType.Type2D
Added MTLTextureType.Type3D
Added MTLTextureType.TypeCube
Added MTLTextureUsage [struct]
Added MTLTextureUsage.init(rawValue: UInt)
Added MTLTextureUsage.Unknown
Added MTLTriangleFillMode.Fill
Added MTLVertexAttribute
Added MTLVertexAttribute.name
Added MTLVertexDescriptor
Added MTLVertexFormat [enum]
Added MTLVertexFormat.Char2
Added MTLVertexFormat.Char3
Added MTLVertexFormat.Char4
Added MTLVertexFormat.Float
Added MTLVertexFormat.Float2
Added MTLVertexFormat.Float3
Added MTLVertexFormat.Float4
Added MTLVertexFormat.Half2
Added MTLVertexFormat.Half3
Added MTLVertexFormat.Half4
Added MTLVertexFormat.Int
Added MTLVertexFormat.Int2
Added MTLVertexFormat.Int3
Added MTLVertexFormat.Int4
Added MTLVertexFormat.Invalid
Added MTLVertexFormat.Short2
Added MTLVertexFormat.Short3
Added MTLVertexFormat.Short4
Added MTLVertexFormat.UChar2
Added MTLVertexFormat.UChar3
Added MTLVertexFormat.UChar4
Added MTLVertexFormat.UInt
Added MTLVertexFormat.UInt2
Added MTLVertexFormat.UInt3
Added MTLVertexFormat.UInt4
Added MTLVertexFormat.UShort2
Added MTLVertexFormat.UShort3
Added MTLVertexFormat.UShort4
Added MTLViewport [struct]
Added MTLViewport.height
Added MTLViewport.init()
Added MTLViewport.init(originX: Double, originY: Double, width: Double, height: Double, znear: Double, zfar: Double)
Added MTLViewport.originX
Added MTLViewport.originY
Added MTLViewport.width
Added MTLViewport.zfar
Added MTLViewport.znear
Added MTLWinding [enum]
Added MTLWinding.Clockwise
Added MTLCommandBufferHandler
Added MTLLibraryErrorDomain
Added MTLRenderPipelineErrorDomain
Added MTLResourceCPUCacheModeShift
Added MTLResourceStorageModeShift