Cargo Features
[dependencies]
objc2-metal-performance-shaders = { version = "0.3.0", default-features = false, features = ["std", "alloc", "block2", "objc2-core-foundation", "objc2-core-graphics", "MPSAccelerationStructure", "MPSAccelerationStructureGroup", "MPSCNNBatchNormalization", "MPSCNNConvolution", "MPSCNNDropout", "MPSCNNInstanceNormalization", "MPSCNNKernel", "MPSCNNLoss", "MPSCNNMath", "MPSCNNNeuron", "MPSCNNNeuronType", "MPSCNNNormalization", "MPSCNNNormalizationWeights", "MPSCNNPooling", "MPSCNNSoftMax", "MPSCNNTypes", "MPSCNNUpsampling", "MPSCommandBuffer", "MPSCore", "MPSCoreTypes", "MPSFunctionConstantIndices", "MPSImage", "MPSImageConvolution", "MPSImageCopy", "MPSImageDistanceTransform", "MPSImageEDLines", "MPSImageGuidedFilter", "MPSImageHistogram", "MPSImageIntegral", "MPSImageKernel", "MPSImageKeypoint", "MPSImageMath", "MPSImageMorphology", "MPSImageReduce", "MPSImageResampling", "MPSImageStatistics", "MPSImageTranspose", "MPSImageTypes", "MPSInstanceAccelerationStructure", "MPSKernel", "MPSKernelTypes", "MPSKeyedUnarchiver", "MPSMatrix", "MPSMatrixBatchNormalization", "MPSMatrixCombination", "MPSMatrixDecomposition", "MPSMatrixFullyConnected", "MPSMatrixLayer", "MPSMatrixMultiplication", "MPSMatrixNeuron", "MPSMatrixRandom", "MPSMatrixSoftMax", "MPSMatrixSolve", "MPSMatrixSum", "MPSMatrixTypes", "MPSNDArray", "MPSNDArrayGather", "MPSNDArrayGradientState", "MPSNDArrayIdentity", "MPSNDArrayKernel", "MPSNDArrayMatrixMultiplication", "MPSNDArrayQuantization", "MPSNDArrayStridedSlice", "MPSNDArrayTypes", "MPSNNGradientState", "MPSNNGraph", "MPSNNGraphNodes", "MPSNNGridSample", "MPSNNOptimizers", "MPSNNReduce", "MPSNNReshape", "MPSNNSlice", "MPSNeuralNetwork", "MPSNeuralNetworkTypes", "MPSPolygonAccelerationStructure", "MPSPolygonBuffer", "MPSQuadrilateralAccelerationStructure", "MPSRNNLayer", "MPSRayIntersector", "MPSRayIntersectorTypes", "MPSSVGF", "MPSState", "MPSTemporalAA", "MPSTriangleAccelerationStructure"] }
- default = MPSAccelerationStructure, MPSAccelerationStructureGroup, MPSCNNBatchNormalization, MPSCNNConvolution, MPSCNNDropout, MPSCNNGroupNormalization, MPSCNNInstanceNormalization, MPSCNNKernel, MPSCNNLoss, MPSCNNMath, MPSCNNNeuron, MPSCNNNeuronType, MPSCNNNormalization, MPSCNNNormalizationWeights, MPSCNNPooling, MPSCNNSoftMax, MPSCNNTypes, MPSCNNUpsampling, MPSCommandBuffer, MPSCore, MPSCoreTypes, MPSFunctionConstantIndices, MPSImage, MPSImageConversion, MPSImageConvolution, MPSImageCopy, MPSImageDistanceTransform, MPSImageEDLines, MPSImageGuidedFilter, MPSImageHistogram, MPSImageIntegral, MPSImageKernel, MPSImageKeypoint, MPSImageMath, MPSImageMedian, MPSImageMorphology, MPSImageReduce, MPSImageResampling, MPSImageStatistics, MPSImageThreshold, MPSImageTranspose, MPSImageTypes, MPSInstanceAccelerationStructure, MPSKernel, MPSKernelTypes, MPSKeyedUnarchiver, MPSMatrix, MPSMatrixBatchNormalization, MPSMatrixCombination, MPSMatrixDecomposition, MPSMatrixFindTopK, MPSMatrixFullyConnected, MPSMatrixLayer, MPSMatrixMultiplication, MPSMatrixNeuron, MPSMatrixRandom, MPSMatrixSoftMax, MPSMatrixSolve, MPSMatrixSum, MPSMatrixTypes, MPSNDArray, MPSNDArrayGather, MPSNDArrayGradientState, MPSNDArrayIdentity, MPSNDArrayKernel, MPSNDArrayMatrixMultiplication, MPSNDArrayQuantization, MPSNDArrayQuantizedMatrixMultiplica…, MPSNDArrayStridedSlice, MPSNDArrayTypes, MPSNNGradientState, MPSNNGraph, MPSNNGraphNodes, MPSNNGridSample, MPSNNOptimizers, MPSNNReduce, MPSNNReshape, MPSNNResize, MPSNNSlice, MPSNeuralNetwork, MPSNeuralNetworkTypes, MPSPolygonAccelerationStructure, MPSPolygonBuffer, MPSQuadrilateralAccelerationStructure, MPSRNNLayer, MPSRayIntersector, MPSRayIntersectorTypes, MPSSVGF, MPSState, MPSTemporalAA, MPSTriangleAccelerationStructure, block2, objc2-core-foundation, objc2-core-graphics, std
-
These default features are set whenever
objc2-metal-performance-shaders
is added without
somewhere in the dependency tree.default-features = false - std default = alloc
- alloc std
- block2 default
-
Enables block2
Affects
MPSImage::MPSImageBatchIterate
,MPSNNGraphNodes::MPSGradientNodeBlock
,MPSImageKernel::MPSCopyAllocator
,MPSNNGraph::MPSNNGraphCompletionHandler
,MPSAccelerationStructure::MPSAccelerationStructureCompletionHandler
… - objc2-core-foundation default
-
Enables objc2-core-foundation
- objc2-core-graphics default
-
Enables objc2-core-graphics
- MPSAccelerationStructure default
-
Enables objc2-metal, NSCoder, NSObject and NSZone of objc2-foundation
- MPSAccelerationStructureGroup default
-
Enables objc2-metal
- MPSCNNBatchNormalization default
-
Enables NSArray, NSCoder, NSObject, NSString and NSZone of objc2-foundation, MTLAllocation, MTLBuffer, MTLResource and MTLTexture of objc2-metal
- MPSCNNConvolution default
-
Enables NSArray, NSCoder, NSData, NSObject, NSString and NSZone of objc2-foundation, MTLAllocation, MTLBuffer, MTLResource and MTLTexture of objc2-metal
- MPSCNNDropout default
-
Enables NSArray, NSCoder, NSData and NSObject of objc2-foundation, MTLAllocation, MTLResource, MTLTexture and MTLTypes of objc2-metal
- MPSCNNGroupNormalization MPSCNNInstanceNormalization default
-
Enables NSArray, NSCoder, NSObject, NSString and NSZone of objc2-foundation, MTLAllocation, MTLBuffer, MTLResource and MTLTexture of objc2-metal
- MPSCNNKernel default
-
Enables NSArray, NSCoder and NSObject of objc2-foundation, MTLTypes of objc2-metal
- MPSCNNLoss default
-
Enables NSArray, NSCoder, NSData and NSObject of objc2-foundation, MTLAllocation, MTLResource, MTLTexture and MTLTypes of objc2-metal
- MPSCNNMath default
-
Enables NSArray, NSCoder and NSObject of objc2-foundation, MTLAllocation, MTLResource and MTLTexture of objc2-metal
- MPSCNNNeuron default
-
Enables objc2-metal, NSCoder, NSData and NSObject of objc2-foundation
- MPSCNNNeuronType default
- MPSCNNNormalization default
-
Enables objc2-metal, NSCoder and NSObject of objc2-foundation
- MPSCNNNormalizationWeights default
-
Enables NSArray of objc2-foundation, MTLAllocation, MTLBuffer, MTLResource and MTLTexture of objc2-metal
- MPSCNNPooling default
-
Enables NSCoder and NSObject of objc2-foundation, MTLTypes of objc2-metal
- MPSCNNSoftMax default
-
Enables objc2-metal, NSCoder and NSObject of objc2-foundation
- MPSCNNTypes default
- MPSCNNUpsampling default
-
Enables objc2-metal, NSCoder and NSObject of objc2-foundation
- MPSCommandBuffer default
-
Enables MTLAllocation, MTLBuffer, MTLCommandQueue, MTLHeap and MTLResource of objc2-metal
- MPSCore default
-
Affects
MPSCNNLoss::MPSCNNLossLabelsBatch
,MPSNNGradientState::MPSNNGradientStateBatch
,MPSNNGradientState::MPSNNBinaryGradientStateBatch
,MPSNNGradientState::MPSNNMultiaryGradientStateBatch
,objc2-metal-performance-shaders::MPSImageBatch
,MPSImageKernel::MPSCopyAllocator
,MPSCNNConvolution::MPSCNNConvolutionGradientStateBatch
,MPSCNNConvolution::MPSCNNConvolutionTransposeGradientStateBatch
,MPSCNNDropout::MPSCNNDropoutGradientStateBatch
,MPSCNNGroupNormalization::MPSCNNGroupNormalizationGradientStateBatch
,MPSCNNInstanceNormalization::MPSCNNInstanceNormalizationGradientStateBatch
,MPSCNNMath::MPSCNNArithmeticGradientStateBatch
,MPSNNGraph::MPSNNGraphCompletionHandler
,MPSAccelerationStructure::MPSAccelerationStructureCompletionHandler
… - MPSCoreTypes default
-
Enables NSArray and NSValue of objc2-foundation, MTLTypes of objc2-metal
- MPSFunctionConstantIndices default
- MPSImage default
-
Enables NSArray, NSObject, NSRange, NSString and NSZone of objc2-foundation, MTLAllocation, MTLPixelFormat, MTLResource, MTLTexture and MTLTypes of objc2-metal
Affects
MPSKernelTypes::MPSGetImageType
,objc2-metal-performance-shaders::MPSImageBatch
,MPSNNGraph::MPSNNGraphCompletionHandler
… - MPSImageConversion MPSImageConvolution default
-
Enables objc2-metal, NSCoder and NSObject of objc2-foundation
- MPSImageCopy default
-
Enables NSArray, NSCoder and NSObject of objc2-foundation, MTLTypes of objc2-metal
- MPSImageDistanceTransform default
-
Enables objc2-metal, NSCoder and NSObject of objc2-foundation
- MPSImageEDLines default
-
Enables NSCoder and NSObject of objc2-foundation, MTLAllocation, MTLBuffer, MTLResource, MTLTexture and MTLTypes of objc2-metal
- MPSImageGuidedFilter default
-
Enables NSCoder and NSObject of objc2-foundation, MTLAllocation, MTLResource and MTLTexture of objc2-metal
- MPSImageHistogram default
-
Enables NSCoder and NSObject of objc2-foundation, MTLAllocation, MTLBuffer, MTLPixelFormat, MTLResource, MTLTexture and MTLTypes of objc2-metal
- MPSImageIntegral default
-
Enables objc2-metal, NSCoder and NSObject of objc2-foundation
- MPSImageKernel default
-
Enables NSCoder and NSObject of objc2-foundation, MTLAllocation, MTLResource, MTLTexture and MTLTypes of objc2-metal
- MPSImageKeypoint default
-
Enables NSCoder and NSObject of objc2-foundation, MTLAllocation, MTLBuffer, MTLResource, MTLTexture and MTLTypes of objc2-metal
- MPSImageMath default
-
Enables NSCoder and NSObject of objc2-foundation, MTLTypes of objc2-metal
- MPSImageMedian MPSImageMorphology default
-
Enables objc2-metal, NSCoder and NSObject of objc2-foundation
- MPSImageReduce default
-
Enables NSCoder and NSObject of objc2-foundation, MTLTypes of objc2-metal
- MPSImageResampling default
-
Enables objc2-metal, NSCoder and NSObject of objc2-foundation
- MPSImageStatistics default
-
Enables NSCoder and NSObject of objc2-foundation, MTLTypes of objc2-metal
- MPSImageThreshold MPSImageTranspose default
-
Enables objc2-metal, NSCoder and NSObject of objc2-foundation
- MPSImageTypes default
- MPSInstanceAccelerationStructure default
-
Enables NSArray, NSCoder and NSObject of objc2-foundation, MTLAllocation, MTLBuffer and MTLResource of objc2-metal
- MPSKernel default
-
Enables objc2-metal, NSCoder, NSObject, NSString and NSZone of objc2-foundation
Affects
MPSImageKernel::MPSCopyAllocator
,MPSAccelerationStructure::MPSAccelerationStructureCompletionHandler
… - MPSKernelTypes default
- MPSKeyedUnarchiver default
-
Enables objc2-metal, NSCoder, NSData, NSError, NSKeyedArchiver, NSSet and NSString of objc2-foundation
- MPSMatrix default
-
Enables NSArray of objc2-foundation, MTLAllocation, MTLBuffer and MTLResource of objc2-metal
- MPSMatrixBatchNormalization default
-
Enables objc2-metal, NSCoder, NSObject and NSZone of objc2-foundation
- MPSMatrixCombination default
-
Enables objc2-metal, NSArray, NSCoder and NSObject of objc2-foundation
- MPSMatrixDecomposition default
-
Enables NSCoder and NSObject of objc2-foundation, MTLAllocation, MTLBuffer and MTLResource of objc2-metal
- MPSMatrixFindTopK MPSMatrixFullyConnected default
-
Enables objc2-metal, NSCoder, NSObject and NSZone of objc2-foundation
- MPSMatrixLayer default
- MPSMatrixMultiplication default
-
Enables NSCoder and NSObject of objc2-foundation, MTLTypes of objc2-metal
- MPSMatrixNeuron default
-
Enables objc2-metal, NSCoder, NSData, NSObject and NSZone of objc2-foundation
- MPSMatrixRandom default
-
Enables objc2-metal, NSCoder and NSObject of objc2-foundation
- MPSMatrixSoftMax default
-
Enables objc2-metal, NSCoder, NSObject and NSZone of objc2-foundation
- MPSMatrixSolve default
-
Enables objc2-metal, NSCoder and NSObject of objc2-foundation
- MPSMatrixSum default
-
Enables NSArray, NSCoder and NSObject of objc2-foundation, MTLTypes of objc2-metal
- MPSMatrixTypes default
-
Enables NSCoder and NSObject of objc2-foundation, MTLTypes of objc2-metal
- MPSNDArray default
-
Enables NSArray, NSObject, NSString and NSValue of objc2-foundation, MTLAllocation, MTLBuffer and MTLResource of objc2-metal
- MPSNDArrayGather default
-
Enables NSArray, NSCoder and NSObject of objc2-foundation, MTLAllocation, MTLResource and MTLTexture of objc2-metal
- MPSNDArrayGradientState default
-
Enables NSArray of objc2-foundation, MTLAllocation, MTLResource and MTLTexture of objc2-metal
- MPSNDArrayIdentity default
-
Enables NSArray, NSCoder, NSObject and NSValue of objc2-foundation, MTLCommandEncoder and MTLComputeCommandEncoder of objc2-metal
- MPSNDArrayKernel default
-
Enables NSArray, NSCoder, NSObject and NSZone of objc2-foundation, MTLCommandEncoder and MTLComputeCommandEncoder of objc2-metal
- MPSNDArrayMatrixMultiplication default
-
Enables objc2-metal, NSCoder and NSObject of objc2-foundation
- MPSNDArrayQuantization default
-
Enables NSObject of objc2-foundation
- MPSNDArrayQuantizedMatrixMultiplication MPSNDArrayStridedSlice default
-
Enables objc2-metal, NSCoder and NSObject of objc2-foundation
- MPSNDArrayTypes default
- MPSNNGradientState default
-
Enables NSArray of objc2-foundation, MTLAllocation, MTLResource and MTLTexture of objc2-metal
Affects
MPSCNNConvolution::MPSCNNConvolutionGradientStateBatch
,MPSCNNConvolution::MPSCNNConvolutionTransposeGradientStateBatch
,MPSCNNDropout::MPSCNNDropoutGradientStateBatch
,MPSCNNGroupNormalization::MPSCNNGroupNormalizationGradientStateBatch
,MPSCNNInstanceNormalization::MPSCNNInstanceNormalizationGradientStateBatch
,MPSCNNMath::MPSCNNArithmeticGradientStateBatch
… - MPSNNGraph default
-
Enables objc2-metal, NSArray, NSCoder, NSError and NSObject of objc2-foundation
- MPSNNGraphNodes default
-
Enables NSArray, NSData, NSObject and NSString of objc2-foundation, MTLTypes of objc2-metal
- MPSNNGridSample default
-
Enables objc2-metal, NSCoder and NSObject of objc2-foundation
- MPSNNOptimizers default
-
Enables objc2-metal, NSArray, NSCoder and NSObject of objc2-foundation
- MPSNNReduce default
-
Enables NSCoder and NSObject of objc2-foundation, MTLTypes of objc2-metal
- MPSNNReshape default
-
Enables objc2-metal, NSArray, NSCoder, NSData and NSObject of objc2-foundation
- MPSNNResize MPSNNSlice default
-
Enables objc2-metal, NSCoder and NSObject of objc2-foundation
- MPSNeuralNetwork default
- MPSNeuralNetworkTypes default
-
Enables NSArray, NSObject and NSString of objc2-foundation
- MPSPolygonAccelerationStructure default
-
Enables NSArray, NSCoder and NSObject of objc2-foundation, MTLAllocation, MTLBuffer and MTLResource of objc2-metal
- MPSPolygonBuffer default
-
Enables NSCoder, NSObject and NSZone of objc2-foundation, MTLAllocation, MTLBuffer and MTLResource of objc2-metal
- MPSQuadrilateralAccelerationStructure default
-
Enables objc2-metal, NSCoder and NSObject of objc2-foundation
- MPSRNNLayer default
-
Enables NSArray, NSCoder, NSObject and NSZone of objc2-foundation, MTLAllocation, MTLResource, MTLTexture and MTLTypes of objc2-metal
- MPSRayIntersector default
-
Enables NSCoder, NSObject and NSZone of objc2-foundation, MTLAllocation, MTLBuffer, MTLRenderCommandEncoder, MTLResource and MTLTexture of objc2-metal
- MPSRayIntersectorTypes default
- MPSSVGF default
-
Enables NSCoder, NSObject and NSZone of objc2-foundation, MTLAllocation, MTLPixelFormat, MTLResource and MTLTexture of objc2-metal
- MPSState default
-
Enables NSArray and NSString of objc2-foundation, MTLAllocation, MTLPixelFormat, MTLResource and MTLTexture of objc2-metal
Affects
MPSCNNLoss::MPSCNNLossLabelsBatch
,MPSNNGradientState::MPSNNGradientStateBatch
,MPSNNGradientState::MPSNNBinaryGradientStateBatch
,MPSNNGradientState::MPSNNMultiaryGradientStateBatch
,MPSCNNConvolution::MPSCNNConvolutionGradientStateBatch
,MPSCNNConvolution::MPSCNNConvolutionTransposeGradientStateBatch
,MPSCNNDropout::MPSCNNDropoutGradientStateBatch
,MPSCNNGroupNormalization::MPSCNNGroupNormalizationGradientStateBatch
,MPSCNNInstanceNormalization::MPSCNNInstanceNormalizationGradientStateBatch
,MPSCNNMath::MPSCNNArithmeticGradientStateBatch
… - MPSTemporalAA default
-
Enables NSCoder, NSObject and NSZone of objc2-foundation, MTLAllocation, MTLResource and MTLTexture of objc2-metal
- MPSTriangleAccelerationStructure default
-
Enables objc2-metal, NSCoder and NSObject of objc2-foundation