Cargo Features
[dependencies]
objc2-metal = { version = "0.2.2", default-features = false, features = ["std", "alloc", "all", "bitflags", "block2", "MTLAccelerationStructure", "MTLAccelerationStructureCommandEncoder", "MTLAccelerationStructureTypes", "MTLArgument", "MTLArgumentEncoder", "MTLBinaryArchive", "MTLBlitCommandEncoder", "MTLBlitPass", "MTLBuffer", "MTLCaptureManager", "MTLCaptureScope", "MTLCommandBuffer", "MTLCommandEncoder", "MTLCommandQueue", "MTLComputeCommandEncoder", "MTLComputePass", "MTLComputePipeline", "MTLCounters", "MTLDefines", "MTLDepthStencil", "MTLDevice", "MTLDrawable", "MTLDynamicLibrary", "MTLEvent", "MTLFence", "MTLFunctionConstantValues", "MTLFunctionDescriptor", "MTLFunctionHandle", "MTLFunctionLog", "MTLFunctionStitching", "MTLHeap", "MTLIOCommandBuffer", "MTLIOCommandQueue", "MTLIOCompressor", "MTLIndirectCommandBuffer", "MTLIndirectCommandEncoder", "MTLIntersectionFunctionTable", "MTLLibrary", "MTLLinkedFunctions", "MTLParallelRenderCommandEncoder", "MTLPipeline", "MTLPixelFormat", "MTLRasterizationRate", "MTLRenderCommandEncoder", "MTLRenderPass", "MTLRenderPipeline", "MTLResource", "MTLResourceStateCommandEncoder", "MTLResourceStatePass", "MTLSampler", "MTLStageInputOutputDescriptor", "MTLTexture", "MTLTypes", "MTLVertexDescriptor", "MTLVisibleFunctionTable", "unstable-private"] }
- default = std
-
The
std
feature is set by default wheneverobjc2-metal
is added without
somewhere in the dependency tree.default-features = false - std default = alloc
-
Currently not possible to turn off, put here for forwards compatibility.
Enables std of optional bitflags, optional block2, objc2, and objc2-foundation
- alloc std
-
Enables alloc of optional block2, objc2, and objc2-foundation
- all = MTLAccelerationStructure, MTLAccelerationStructureCommandEncoder, MTLAccelerationStructureTypes, MTLArgument, MTLArgumentEncoder, MTLBinaryArchive, MTLBlitCommandEncoder, MTLBlitPass, MTLBuffer, MTLCaptureManager, MTLCaptureScope, MTLCommandBuffer, MTLCommandEncoder, MTLCommandQueue, MTLComputeCommandEncoder, MTLComputePass, MTLComputePipeline, MTLCounters, MTLDefines, MTLDepthStencil, MTLDevice, MTLDrawable, MTLDynamicLibrary, MTLEvent, MTLFence, MTLFunctionConstantValues, MTLFunctionDescriptor, MTLFunctionHandle, MTLFunctionLog, MTLFunctionStitching, MTLHeap, MTLIOCommandBuffer, MTLIOCommandQueue, MTLIOCompressor, MTLIndirectCommandBuffer, MTLIndirectCommandEncoder, MTLIntersectionFunctionTable, MTLLibrary, MTLLinkedFunctions, MTLParallelRenderCommandEncoder, MTLPipeline, MTLPixelFormat, MTLRasterizationRate, MTLRenderCommandEncoder, MTLRenderPass, MTLRenderPipeline, MTLResource, MTLResourceStateCommandEncoder, MTLResourceStatePass, MTLSampler, MTLStageInputOutputDescriptor, MTLTexture, MTLTypes, MTLVertexDescriptor, MTLVisibleFunctionTable, bitflags, block2
- bitflags MTLAccelerationStructure? MTLAccelerationStructureCommandEncoder? MTLBlitCommandEncoder? MTLCommandBuffer? MTLCommandEncoder? MTLDevice? MTLFunctionDescriptor? MTLIndirectCommandBuffer? MTLIntersectionFunctionTable? MTLRenderCommandEncoder? MTLRenderPass? MTLRenderPipeline? MTLResource? MTLTexture? all?
-
Enables bitflags, bitflags of objc2-foundation
- block2 all?
-
Enables block2, block2 of objc2-foundation
Affects
MTLCommandBuffer::MTLCommandBufferHandler
,MTLDevice::MTLDeviceNotificationHandler
,MTLDrawable::MTLDrawablePresentedHandler
,MTLEvent::MTLSharedEventNotificationBlock
,MTLIOCommandBuffer::MTLIOCommandBufferHandler
,MTLDevice::MTLNewLibraryCompletionHandler
,MTLDevice::MTLNewRenderPipelineStateCompletionHandler
,MTLDevice::MTLNewRenderPipelineStateWithReflectionCompletionHandler
,MTLDevice::MTLNewComputePipelineStateCompletionHandler
,MTLDevice::MTLNewComputePipelineStateWithReflectionCompletionHandler
… - MTLAccelerationStructure all? = bitflags
-
Enables NSArray, NSObject and NSString of objc2-foundation
- MTLAccelerationStructureCommandEncoder all? = bitflags
-
Enables NSObject of objc2-foundation
- MTLAccelerationStructureTypes all?
-
Affects
MTLAccelerationStructure::MTLAccelerationStructureInstanceDescriptor
,MTLAccelerationStructure::MTLAccelerationStructureUserIDInstanceDescriptor
,MTLAccelerationStructure::MTLIndirectAccelerationStructureInstanceDescriptor
… - MTLArgument all?
-
Enables NSArray and NSString of objc2-foundation
- MTLArgumentEncoder all?
-
Enables NSRange and NSString of objc2-foundation
- MTLBinaryArchive all?
-
Enables NSError, NSObject, NSString and NSURL of objc2-foundation
- MTLBlitCommandEncoder all? = bitflags
-
Enables NSRange of objc2-foundation
- MTLBlitPass all?
-
Enables NSObject of objc2-foundation
- MTLBuffer all?
-
Enables NSRange and NSString of objc2-foundation
- MTLCaptureManager all?
-
Enables NSError, NSObject, NSString and NSURL of objc2-foundation
- MTLCaptureScope all?
-
Enables NSString of objc2-foundation
- MTLCommandBuffer all? = bitflags
-
Enables NSArray, NSEnumerator, NSError, NSObject and NSString of objc2-foundation
- MTLCommandEncoder all? = bitflags
-
Enables NSString of objc2-foundation
Affects
slice::MTLRenderCommandEncoderSliceExt
… - MTLCommandQueue all?
-
Enables NSString of objc2-foundation
- MTLComputeCommandEncoder all?
-
Enables NSRange of objc2-foundation
- MTLComputePass all?
-
Enables NSObject of objc2-foundation
- MTLComputePipeline all?
-
Enables NSArray, NSError, NSObject and NSString of objc2-foundation
Affects
MTLDevice::MTLNewComputePipelineStateCompletionHandler
,MTLDevice::MTLNewComputePipelineStateWithReflectionCompletionHandler
… - MTLCounters all?
-
Enables NSArray, NSData, NSError, NSObject, NSRange and NSString of objc2-foundation
- MTLDefines all?
- MTLDepthStencil all?
-
Enables NSObject and NSString of objc2-foundation
- MTLDevice all? = bitflags
-
Enables NSArray, NSBundle, NSError, NSObject, NSString and NSURL of objc2-foundation
Affects
MTLIOCompressor::MTLIOCreateCompressionContext
… - MTLDrawable all?
- MTLDynamicLibrary all?
-
Enables NSError, NSString and NSURL of objc2-foundation
- MTLEvent all?
-
Enables NSObject and NSString of objc2-foundation
- MTLFence all?
-
Enables NSString of objc2-foundation
- MTLFunctionConstantValues all?
-
Enables NSObject, NSRange and NSString of objc2-foundation
- MTLFunctionDescriptor all? = bitflags
-
Enables NSArray, NSObject and NSString of objc2-foundation
- MTLFunctionHandle all?
-
Enables NSString of objc2-foundation
- MTLFunctionLog all?
-
Enables NSEnumerator, NSString and NSURL of objc2-foundation
- MTLFunctionStitching all?
-
Enables NSArray, NSObject and NSString of objc2-foundation
- MTLHeap all?
-
Enables NSObject and NSString of objc2-foundation
- MTLIOCommandBuffer all?
-
Enables NSError and NSString of objc2-foundation
- MTLIOCommandQueue all?
-
Enables NSError, NSObject and NSString of objc2-foundation
- MTLIOCompressor all?
- MTLIndirectCommandBuffer all? = bitflags
-
Enables NSObject and NSRange of objc2-foundation
- MTLIndirectCommandEncoder all?
- MTLIntersectionFunctionTable all? = bitflags
-
Enables NSObject and NSRange of objc2-foundation
- MTLLibrary all?
-
Enables NSArray, NSDictionary, NSError, NSObject and NSString of objc2-foundation
Affects
MTLDevice::MTLNewLibraryCompletionHandler
… - MTLLinkedFunctions all?
-
Enables NSArray, NSDictionary, NSObject and NSString of objc2-foundation
- MTLParallelRenderCommandEncoder all?
- MTLPipeline all?
-
Enables NSObject of objc2-foundation
- MTLPixelFormat all?
- MTLRasterizationRate all?
-
Enables NSObject, NSString and NSValue of objc2-foundation
- MTLRenderCommandEncoder all? = bitflags
-
Enables NSRange of objc2-foundation
Affects
slice::MTLRenderCommandEncoderSliceExt
… - MTLRenderPass all? = bitflags
-
Enables NSObject of objc2-foundation
- MTLRenderPipeline all? = bitflags
-
Enables NSArray, NSError, NSObject and NSString of objc2-foundation
Affects
MTLDevice::MTLNewRenderPipelineStateCompletionHandler
,MTLDevice::MTLNewRenderPipelineStateWithReflectionCompletionHandler
… - MTLResource all? = bitflags
-
Enables NSString of objc2-foundation
- MTLResourceStateCommandEncoder all?
- MTLResourceStatePass all?
-
Enables NSObject of objc2-foundation
- MTLSampler all?
-
Enables NSObject and NSString of objc2-foundation
- MTLStageInputOutputDescriptor all?
-
Enables NSObject of objc2-foundation
- MTLTexture all? = bitflags
-
Enables NSObject, NSRange and NSString of objc2-foundation
- MTLTypes all?
-
Affects
MTLAccelerationStructure::MTLIndirectAccelerationStructureMotionInstanceDescriptor
,MTLAccelerationStructure::MTLIndirectAccelerationStructureInstanceDescriptor
… - MTLVertexDescriptor all?
-
Enables NSObject of objc2-foundation
- MTLVisibleFunctionTable all?
-
Enables NSObject and NSRange of objc2-foundation
- unstable-private
-
Enables NSError and NSString of objc2-foundation