Cargo Features
[dependencies]
objc2-metal-kit = { version = "0.3.0", default-features = false, features = ["std", "alloc", "block2", "objc2-app-kit", "objc2-core-foundation", "objc2-core-graphics", "objc2-model-io", "objc2-quartz-core", "MTKDefines", "MTKModel", "MTKTextureLoader", "MTKView"] }
- default = MTKDefines, MTKModel, MTKTextureLoader, MTKView, block2, objc2-app-kit, objc2-core-foundation, objc2-core-graphics, objc2-model-io, objc2-quartz-core, std
-
These default features are set whenever
objc2-metal-kit
is added without
somewhere in the dependency tree.default-features = false - std default = alloc
- alloc std
- block2 default
-
Enables block2
Affects
MTKTextureLoader::MTKTextureLoaderCallback
,MTKTextureLoader::MTKTextureLoaderArrayCallback
… - objc2-app-kit default
-
Enables objc2-app-kit
- objc2-core-foundation default
-
Enables objc2-core-foundation
- objc2-core-graphics default
-
Enables objc2-core-graphics
- objc2-model-io default
-
Enables objc2-model-io
Affects
MTKModel::MTKModelIOVertexDescriptorFromMetal
,MTKModel::MTKModelIOVertexDescriptorFromMetalWithError
,MTKModel::MTKMetalVertexDescriptorFromModelIO
,MTKModel::MTKMetalVertexDescriptorFromModelIOWithError
,MTKModel::MTKModelIOVertexFormatFromMetal
,MTKModel::MTKMetalVertexFormatFromModelIO
… - objc2-quartz-core default
-
Enables objc2-quartz-core
- MTKDefines default
- MTKModel default
-
Enables NSArray, NSError, NSObject and NSString of objc2-foundation, MTLAllocation, MTLBuffer, MTLDevice, MTLRenderCommandEncoder, MTLResource, MTLStageInputOutputDescriptor and MTLVertexDescriptor of objc2-metal
- MTKTextureLoader default
-
Enables NSArray, NSBundle, NSData, NSDictionary, NSError, NSString and NSURL of objc2-foundation, MTLAllocation, MTLDevice, MTLResource and MTLTexture of objc2-metal
- MTKView default
-
Enables NSCoder, NSGeometry, NSObject and objc2-core-foundation of objc2-foundation, MTLAllocation, MTLDevice, MTLPixelFormat, MTLRenderPass, MTLResource and MTLTexture of objc2-metal