Cargo Features

[dependencies]
objc2-metal = { version = "0.3.0", default-features = false, features = ["std", "alloc", "bitflags", "block2", "objc2-core-foundation", "objc2-io-surface", "MTLAccelerationStructure", "MTLAccelerationStructureCommandEncoder", "MTLAccelerationStructureTypes", "MTLAllocation", "MTLArgument", "MTLArgumentEncoder", "MTLBinaryArchive", "MTLBlitCommandEncoder", "MTLBlitPass", "MTLBuffer", "MTLCaptureManager", "MTLCaptureScope", "MTLCommandBuffer", "MTLCommandEncoder", "MTLCommandQueue", "MTLComputeCommandEncoder", "MTLComputePass", "MTLComputePipeline", "MTLCounters", "MTLDefines", "MTLDepthStencil", "MTLDevice", "MTLDeviceCertification", "MTLDrawable", "MTLDynamicLibrary", "MTLEvent", "MTLFence", "MTLFunctionConstantValues", "MTLFunctionDescriptor", "MTLFunctionHandle", "MTLFunctionLog", "MTLFunctionStitching", "MTLHeap", "MTLIOCommandBuffer", "MTLIOCommandQueue", "MTLIOCompressor", "MTLIndirectCommandBuffer", "MTLIndirectCommandEncoder", "MTLIntersectionFunctionTable", "MTLLibrary", "MTLLinkedFunctions", "MTLLogState", "MTLParallelRenderCommandEncoder", "MTLPipeline", "MTLPixelFormat", "MTLRasterizationRate", "MTLRenderCommandEncoder", "MTLRenderPass", "MTLRenderPipeline", "MTLResidencySet", "MTLResource", "MTLResourceStateCommandEncoder", "MTLResourceStatePass", "MTLSampler", "MTLStageInputOutputDescriptor", "MTLTexture", "MTLTypes", "MTLVertexDescriptor", "MTLVisibleFunctionTable", "unstable-private"] }
default = MTLAccelerationStructure, MTLAccelerationStructureCommandEncoder, MTLAccelerationStructureTypes, MTLAllocation, MTLArgument, MTLArgumentEncoder, MTLBinaryArchive, MTLBlitCommandEncoder, MTLBlitPass, MTLBuffer, MTLCaptureManager, MTLCaptureScope, MTLCommandBuffer, MTLCommandEncoder, MTLCommandQueue, MTLComputeCommandEncoder, MTLComputePass, MTLComputePipeline, MTLCounters, MTLDefines, MTLDepthStencil, MTLDevice, MTLDeviceCertification, MTLDrawable, MTLDynamicLibrary, MTLEvent, MTLFence, MTLFunctionConstantValues, MTLFunctionDescriptor, MTLFunctionHandle, MTLFunctionLog, MTLFunctionStitching, MTLHeap, MTLIOCommandBuffer, MTLIOCommandQueue, MTLIOCompressor, MTLIndirectCommandBuffer, MTLIndirectCommandEncoder, MTLIntersectionFunctionTable, MTLLibrary, MTLLinkedFunctions, MTLLogState, MTLParallelRenderCommandEncoder, MTLPipeline, MTLPixelFormat, MTLRasterizationRate, MTLRenderCommandEncoder, MTLRenderPass, MTLRenderPipeline, MTLResidencySet, MTLResource, MTLResourceStateCommandEncoder, MTLResourceStatePass, MTLSampler, MTLStageInputOutputDescriptor, MTLTexture, MTLTypes, MTLVertexDescriptor, MTLVisibleFunctionTable, bitflags, block2, objc2-core-foundation, std

These default features are set whenever objc2-metal is added without default-features = false somewhere in the dependency tree.

std default = alloc
alloc std
bitflags default MTLAccelerationStructure MTLAccelerationStructureCommandEncoder MTLBlitCommandEncoder MTLCommandBuffer MTLCommandEncoder MTLDevice MTLFunctionDescriptor MTLFunctionStitching MTLIndirectCommandBuffer MTLIntersectionFunctionTable MTLRenderCommandEncoder MTLRenderPass MTLRenderPipeline MTLResource MTLTexture

Enables bitflags

block2 default

Enables block2

Affects MTLCommandBuffer::MTLCommandBufferHandler, MTLDevice::MTLDeviceNotificationHandler, MTLDevice::MTLCopyAllDevicesWithObserver, MTLDrawable::MTLDrawablePresentedHandler, MTLEvent::MTLSharedEventNotificationBlock, MTLIOCommandBuffer::MTLIOCommandBufferHandler, MTLDevice::MTLNewLibraryCompletionHandler, MTLDevice::MTLNewRenderPipelineStateCompletionHandler, MTLDevice::MTLNewRenderPipelineStateWithReflectionCompletionHandler, MTLDevice::MTLNewComputePipelineStateCompletionHandler, MTLDevice::MTLNewComputePipelineStateWithReflectionCompletionHandler

objc2-core-foundation default

Enables objc2-core-foundation

objc2-io-surface

Enables objc2-io-surface

MTLAccelerationStructure default = bitflags

Enables NSArray, NSObject and NSString of objc2-foundation

MTLAccelerationStructureCommandEncoder default = bitflags

Enables NSObject of objc2-foundation

MTLAccelerationStructureTypes default

Affects MTLAccelerationStructure::MTLAccelerationStructureInstanceDescriptor, MTLAccelerationStructure::MTLAccelerationStructureUserIDInstanceDescriptor, MTLAccelerationStructure::MTLIndirectAccelerationStructureInstanceDescriptor

MTLAllocation default
MTLArgument default

Enables NSArray and NSString of objc2-foundation

Affects MTLLibrary::MTLAutoreleasedArgument

MTLArgumentEncoder default

Enables NSRange and NSString of objc2-foundation

MTLBinaryArchive default

Enables NSError, NSObject, NSString and NSURL of objc2-foundation

MTLBlitCommandEncoder default = bitflags

Enables NSRange of objc2-foundation

MTLBlitPass default

Enables NSObject of objc2-foundation

MTLBuffer default

Enables NSRange and NSString of objc2-foundation

MTLCaptureManager default

Enables NSError, NSObject, NSString and NSURL of objc2-foundation

MTLCaptureScope default

Enables NSString of objc2-foundation

MTLCommandBuffer default = bitflags

Enables NSArray, NSEnumerator, NSError, NSObject and NSString of objc2-foundation

MTLCommandEncoder default = bitflags

Enables NSString of objc2-foundation

Affects slice::MTLRenderCommandEncoderSliceExt

MTLCommandQueue default

Enables NSObject and NSString of objc2-foundation

MTLComputeCommandEncoder default

Enables NSRange of objc2-foundation

MTLComputePass default

Enables NSObject of objc2-foundation

MTLComputePipeline default

Enables NSArray, NSError, NSObject and NSString of objc2-foundation

Affects MTLDevice::MTLAutoreleasedComputePipelineReflection, MTLDevice::MTLNewComputePipelineStateCompletionHandler, MTLDevice::MTLNewComputePipelineStateWithReflectionCompletionHandler

MTLCounters default

Enables NSArray, NSData, NSError, NSObject, NSRange and NSString of objc2-foundation

MTLDefines default
MTLDepthStencil default

Enables NSObject and NSString of objc2-foundation

MTLDevice default = bitflags

Enables NSArray, NSBundle, NSError, NSObject, NSString and NSURL of objc2-foundation

Affects MTLIOCompressor::MTLIOCreateCompressionContext

MTLDeviceCertification default

Enables NSNotification, NSProcessInfo and NSString of objc2-foundation

MTLDrawable default
MTLDynamicLibrary default

Enables NSError, NSString and NSURL of objc2-foundation

MTLEvent default

Enables NSObject and NSString of objc2-foundation

MTLFence default

Enables NSString of objc2-foundation

MTLFunctionConstantValues default

Enables NSObject, NSRange and NSString of objc2-foundation

MTLFunctionDescriptor default = bitflags

Enables NSArray, NSObject and NSString of objc2-foundation

MTLFunctionHandle default

Enables NSString of objc2-foundation

MTLFunctionLog default

Enables NSEnumerator, NSString and NSURL of objc2-foundation

MTLFunctionStitching default = bitflags

Enables NSArray, NSObject and NSString of objc2-foundation

MTLHeap default

Enables NSObject and NSString of objc2-foundation

MTLIOCommandBuffer default

Enables NSError and NSString of objc2-foundation

MTLIOCommandQueue default

Enables NSError, NSObject and NSString of objc2-foundation

MTLIOCompressor default
MTLIndirectCommandBuffer default = bitflags

Enables NSObject and NSRange of objc2-foundation

MTLIndirectCommandEncoder default
MTLIntersectionFunctionTable default = bitflags

Enables NSObject and NSRange of objc2-foundation

MTLLibrary default

Enables NSArray, NSDictionary, NSError, NSObject and NSString of objc2-foundation

Affects MTLDevice::MTLNewLibraryCompletionHandler

MTLLinkedFunctions default

Enables NSArray, NSDictionary, NSObject and NSString of objc2-foundation

MTLLogState default

Enables NSError, NSObject and NSString of objc2-foundation

MTLParallelRenderCommandEncoder default
MTLPipeline default

Enables NSObject of objc2-foundation

MTLPixelFormat default
MTLRasterizationRate default

Enables NSObject, NSString and NSValue of objc2-foundation

MTLRenderCommandEncoder default = bitflags

Enables NSRange of objc2-foundation

Affects slice::MTLRenderCommandEncoderSliceExt

MTLRenderPass default = bitflags

Enables NSObject of objc2-foundation

MTLRenderPipeline default = bitflags

Enables NSArray, NSError, NSObject and NSString of objc2-foundation

Affects MTLDevice::MTLAutoreleasedRenderPipelineReflection, MTLDevice::MTLNewRenderPipelineStateCompletionHandler, MTLDevice::MTLNewRenderPipelineStateWithReflectionCompletionHandler

MTLResidencySet default

Enables NSArray, NSObject and NSString of objc2-foundation

MTLResource default = bitflags

Enables NSString of objc2-foundation

MTLResourceStateCommandEncoder default
MTLResourceStatePass default

Enables NSObject of objc2-foundation

MTLSampler default

Enables NSObject and NSString of objc2-foundation

MTLStageInputOutputDescriptor default

Enables NSObject of objc2-foundation

MTLTexture default = bitflags

Enables NSObject, NSRange and NSString of objc2-foundation

MTLTypes default

Affects MTLAccelerationStructure::MTLIndirectAccelerationStructureMotionInstanceDescriptor, MTLAccelerationStructure::MTLIndirectAccelerationStructureInstanceDescriptor

MTLVertexDescriptor default

Enables NSObject of objc2-foundation

MTLVisibleFunctionTable default

Enables NSObject and NSRange of objc2-foundation

unstable-private

Enables NSError and NSString of objc2-foundation