encode
TypeScriptencodeCommandBufferDestinationMatrix(commandBuffer: SDKHandle, destinationMatrix: MPSMatrix): voidSwift declarationfunc encode(commandBuffer: any MTLCommandBuffer, destinationMatrix: MPSMatrix)class · iOS 13.0+ · SDK 27.1
class MPSMatrixRandomencodeCommandBufferDestinationMatrix(commandBuffer: SDKHandle, destinationMatrix: MPSMatrix): voidSwift declarationfunc encode(commandBuffer: any MTLCommandBuffer, destinationMatrix: MPSMatrix)encodeCommandBufferDestinationVector(commandBuffer: SDKHandle, destinationVector: MPSVector): voidSwift declarationfunc encode(commandBuffer: any MTLCommandBuffer, destinationVector: MPSVector)static init(): MPSMatrixRandomSwift declarationinit()get batchSize(): numberSwift declarationvar batchSize: Int { get set }set batchSize(value: number)Swift declarationvar batchSize: Int { get set }get batchStart(): numberSwift declarationvar batchStart: Int { get set }set batchStart(value: number)Swift declarationvar batchStart: Int { get set }get destinationDataType(): MPSDataTypeSwift declarationvar destinationDataType: MPSDataType { get }get distributionType(): MPSMatrixRandomDistributionSwift declarationvar distributionType: MPSMatrixRandomDistribution { get }No declarations were skipped in this snapshot.