defaultAllocator
TypeScriptstatic defaultAllocator(): SDKHandleSwift declarationclass func defaultAllocator() -> any MPSImageAllocatorclass · iOS 10.0+ · SDK 27.1
class MPSImagestatic defaultAllocator(): SDKHandleSwift declarationclass func defaultAllocator() -> any MPSImageAllocatorbatchRepresentation(): Array<MPSImage>Swift declarationfunc batchRepresentation() -> [MPSImage]batchRepresentationWithSubRange(subRange: SDKHandle): Array<MPSImage>Swift declarationfunc batchRepresentation(withSubRange subRange: NSRange) -> [MPSImage]static initDeviceImageDescriptor(device: SDKHandle, imageDescriptor: MPSImageDescriptor): MPSImageSwift declarationconvenience init(device: any MTLDevice, imageDescriptor: MPSImageDescriptor)static initParentImageSliceRangeFeatureChannels(parent: MPSImage, sliceRange: SDKHandle, featureChannels: number): MPSImageSwift declarationinit(parentImage parent: MPSImage, sliceRange: NSRange, featureChannels: Int)static initTextureFeatureChannels(texture: SDKHandle, featureChannels: number): MPSImageSwift declarationconvenience init(texture: any MTLTexture, featureChannels: Int)readBytesDataLayoutBytesPerRowBytesPerImageRegionFeatureChannelInfoImageIndex(dataBytes: SDKHandle, dataLayout: MPSDataLayout, bytesPerRow: number, bytesPerImage: number, region: _Metal_MTLRegion, featureChannelInfo: MPSImageReadWriteParams, imageIndex: number): voidSwift declarationfunc readBytes(_ dataBytes: UnsafeMutableRawPointer, dataLayout: MPSDataLayout, bytesPerRow: Int, bytesPerImage: Int, region: MTLRegion, featureChannelInfo: MPSImageReadWriteParams, imageIndex: Int)readBytesDataLayoutBytesPerRowRegionFeatureChannelInfoImageIndex(dataBytes: SDKHandle, dataLayout: MPSDataLayout, bytesPerRow: number, region: _Metal_MTLRegion, featureChannelInfo: MPSImageReadWriteParams, imageIndex: number): voidSwift declarationfunc readBytes(_ dataBytes: UnsafeMutableRawPointer, dataLayout: MPSDataLayout, bytesPerRow: Int, region: MTLRegion, featureChannelInfo: MPSImageReadWriteParams, imageIndex: Int)readBytesDataLayoutImageIndex(dataBytes: SDKHandle, dataLayout: MPSDataLayout, imageIndex: number): voidSwift declarationfunc readBytes(_ dataBytes: UnsafeMutableRawPointer, dataLayout: MPSDataLayout, imageIndex: Int)resourceSize(): numberSwift declarationfunc resourceSize() -> IntsetPurgeableState(state: MPSPurgeableState): MPSPurgeableStateSwift declarationfunc setPurgeableState(_ state: MPSPurgeableState) -> MPSPurgeableStatesubImage(range: SDKHandle): MPSImageSwift declarationfunc subImage(withFeatureChannelRange range: NSRange) -> MPSImagesynchronize(commandBuffer: SDKHandle): voidSwift declarationfunc synchronize(on commandBuffer: any MTLCommandBuffer)writeBytesDataLayoutBytesPerColumnBytesPerRowBytesPerImageRegionFeatureChannelInfoImageIndex(dataBytes: SDKHandle, dataLayout: MPSDataLayout, bytesPerColumn: number, bytesPerRow: number, bytesPerImage: number, region: _Metal_MTLRegion, featureChannelInfo: MPSImageReadWriteParams, imageIndex: number): voidSwift declarationfunc writeBytes(_ dataBytes: UnsafeRawPointer, dataLayout: MPSDataLayout, bytesPerColumn: Int, bytesPerRow: Int, bytesPerImage: Int, region: MTLRegion, featureChannelInfo: MPSImageReadWriteParams, imageIndex: Int)writeBytesDataLayoutBytesPerRowBytesPerImageRegionFeatureChannelInfoImageIndex(dataBytes: SDKHandle, dataLayout: MPSDataLayout, bytesPerRow: number, bytesPerImage: number, region: _Metal_MTLRegion, featureChannelInfo: MPSImageReadWriteParams, imageIndex: number): voidSwift declarationfunc writeBytes(_ dataBytes: UnsafeRawPointer, dataLayout: MPSDataLayout, bytesPerRow: Int, bytesPerImage: Int, region: MTLRegion, featureChannelInfo: MPSImageReadWriteParams, imageIndex: Int)writeBytesDataLayoutBytesPerRowRegionFeatureChannelInfoImageIndex(dataBytes: SDKHandle, dataLayout: MPSDataLayout, bytesPerRow: number, region: _Metal_MTLRegion, featureChannelInfo: MPSImageReadWriteParams, imageIndex: number): voidSwift declarationfunc writeBytes(_ dataBytes: UnsafeRawPointer, dataLayout: MPSDataLayout, bytesPerRow: Int, region: MTLRegion, featureChannelInfo: MPSImageReadWriteParams, imageIndex: Int)writeBytesDataLayoutImageIndex(dataBytes: SDKHandle, dataLayout: MPSDataLayout, imageIndex: number): voidSwift declarationfunc writeBytes(_ dataBytes: UnsafeRawPointer, dataLayout: MPSDataLayout, imageIndex: Int)get device(): SDKHandleSwift declarationvar device: any MTLDevice { get }get featureChannelFormat(): MPSImageFeatureChannelFormatSwift declarationvar featureChannelFormat: MPSImageFeatureChannelFormat { get }get featureChannels(): numberSwift declarationvar featureChannels: Int { get }get height(): numberSwift declarationvar height: Int { get }get label(): (string) | nullSwift declarationvar label: String? { get set }set label(value: (string) | null)Swift declarationvar label: String? { get set }get numberOfImages(): numberSwift declarationvar numberOfImages: Int { get }get parent(): (MPSImage) | nullSwift declarationvar parent: MPSImage? { get }get pixelFormat(): _Metal_MTLPixelFormatSwift declarationvar pixelFormat: MTLPixelFormat { get }get pixelSize(): numberSwift declarationvar pixelSize: Int { get }get precision(): numberSwift declarationvar precision: Int { get }get texture(): SDKHandleSwift declarationvar texture: any MTLTexture { get }get textureType(): _Metal_MTLTextureTypeSwift declarationvar textureType: MTLTextureType { get }get usage(): _Metal_MTLTextureUsageSwift declarationvar usage: MTLTextureUsage { get }get width(): numberSwift declarationvar width: Int { get }1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
MPSImage.init()
inherited init: cannot prove legal (class declares 3 custom initializers)