One Logo Pool Ball
MetalPerformanceShaders · IOS API REFERENCE

MPSUnaryImageKernel

class · iOS 9.0+ · SDK 27.1

class MPSUnaryImageKernel

Members (12)

method · iOS 9.0+

encode

TypeScript
encodeCommandBufferInPlaceTexture(commandBuffer: SDKHandle, texture: SDKHandle): boolean
Swift declaration
func encode(commandBuffer: any MTLCommandBuffer, inPlaceTexture texture: UnsafeMutablePointer<any MTLTexture>, fallbackCopyAllocator copyAllocator: MPSCopyAllocator? = nil) -> Bool
method · iOS 9.0+

encode

TypeScript
encodeCommandBufferSourceImageDestinationImage(commandBuffer: SDKHandle, sourceImage: MPSImage, destinationImage: MPSImage): void
Swift declaration
func encode(commandBuffer: any MTLCommandBuffer, sourceImage: MPSImage, destinationImage: MPSImage)
method · iOS 9.0+

encode

TypeScript
encodeCommandBufferSourceTextureDestinationTexture(commandBuffer: SDKHandle, sourceTexture: SDKHandle, destinationTexture: SDKHandle): void
Swift declaration
func encode(commandBuffer: any MTLCommandBuffer, sourceTexture: any MTLTexture, destinationTexture: any MTLTexture)
init · iOS 11.0+

init

TypeScript
static initCoderDevice(aDecoder: _Foundation_NSCoder, device: SDKHandle): (MPSUnaryImageKernel) | null
Swift declaration
init?(coder aDecoder: NSCoder, device: any MTLDevice)
init · iOS 9.0+

init

TypeScript
static initDevice(device: SDKHandle): MPSUnaryImageKernel
Swift declaration
init(device: any MTLDevice)
method · iOS 9.0+

sourceRegion

TypeScript
sourceRegion(destinationSize: _Metal_MTLSize): MPSRegion
Swift declaration
func sourceRegion(destinationSize: MTLSize) -> MPSRegion
get · iOS 9.0+

clipRect

TypeScript
get clipRect(): _Metal_MTLRegion
Swift declaration
var clipRect: MTLRegion { get set }
set · iOS 9.0+

clipRect

TypeScript
set clipRect(value: _Metal_MTLRegion)
Swift declaration
var clipRect: MTLRegion { get set }
get · iOS 9.0+

edgeMode

TypeScript
get edgeMode(): MPSImageEdgeMode
Swift declaration
var edgeMode: MPSImageEdgeMode { get set }
set · iOS 9.0+

edgeMode

TypeScript
set edgeMode(value: MPSImageEdgeMode)
Swift declaration
var edgeMode: MPSImageEdgeMode { get set }
get · iOS 9.0+

offset

TypeScript
get offset(): MPSOffset
Swift declaration
var offset: MPSOffset { get set }
set · iOS 9.0+

offset

TypeScript
set offset(value: MPSOffset)
Swift declaration
var 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 →