MetalPerformanceShaders · IOS API REFERENCE
MPSUnaryImageKernel
class · iOS 9.0+ · SDK 27.1
class MPSUnaryImageKernel
Members (12)
method · iOS 9.0+encode
TypeScriptencodeCommandBufferInPlaceTexture(commandBuffer: SDKHandle, texture: SDKHandle): boolean
Swift declarationfunc encode(commandBuffer: any MTLCommandBuffer, inPlaceTexture texture: UnsafeMutablePointer<any MTLTexture>, fallbackCopyAllocator copyAllocator: MPSCopyAllocator? = nil) -> Bool
method · iOS 9.0+encode
TypeScriptencodeCommandBufferSourceImageDestinationImage(commandBuffer: SDKHandle, sourceImage: MPSImage, destinationImage: MPSImage): void
Swift declarationfunc encode(commandBuffer: any MTLCommandBuffer, sourceImage: MPSImage, destinationImage: MPSImage)
method · iOS 9.0+encode
TypeScriptencodeCommandBufferSourceTextureDestinationTexture(commandBuffer: SDKHandle, sourceTexture: SDKHandle, destinationTexture: SDKHandle): void
Swift declarationfunc encode(commandBuffer: any MTLCommandBuffer, sourceTexture: any MTLTexture, destinationTexture: any MTLTexture)
init · iOS 11.0+init
TypeScriptstatic initCoderDevice(aDecoder: _Foundation_NSCoder, device: SDKHandle): (MPSUnaryImageKernel) | null
Swift declarationinit?(coder aDecoder: NSCoder, device: any MTLDevice)
init · iOS 9.0+init
TypeScriptstatic initDevice(device: SDKHandle): MPSUnaryImageKernel
Swift declarationinit(device: any MTLDevice)
method · iOS 9.0+sourceRegion
TypeScriptsourceRegion(destinationSize: _Metal_MTLSize): MPSRegion
Swift declarationfunc sourceRegion(destinationSize: MTLSize) -> MPSRegion
get · iOS 9.0+clipRect
TypeScriptget clipRect(): _Metal_MTLRegion
Swift declarationvar clipRect: MTLRegion { get set }
set · iOS 9.0+clipRect
TypeScriptset clipRect(value: _Metal_MTLRegion)
Swift declarationvar clipRect: MTLRegion { get set }
get · iOS 9.0+edgeMode
TypeScriptget edgeMode(): MPSImageEdgeMode
Swift declarationvar edgeMode: MPSImageEdgeMode { get set }
set · iOS 9.0+edgeMode
TypeScriptset edgeMode(value: MPSImageEdgeMode)
Swift declarationvar edgeMode: MPSImageEdgeMode { get set }
get · iOS 9.0+offset
TypeScriptget offset(): MPSOffset
Swift declarationvar offset: MPSOffset { get set }
set · iOS 9.0+offset
TypeScriptset offset(value: MPSOffset)
Swift declarationvar offset: MPSOffset { get set }
Skipped declarations
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
MPSUnaryImageKernel.init()
inherited init: cannot prove legal (class declares 1 custom initializer)
All MetalPerformanceShaders types →