makeCommandAllocator(descriptor:)
Creates a new command allocator from a command allocator descriptor.
Declaration
func makeCommandAllocator(descriptor: MTL4CommandAllocatorDescriptor) throws -> any MTL4CommandAllocatorParameters
- descriptor:
A Mtl4commandallocatordescriptor instance that configures the Mtl4commandallocator instance.
Return Value
A MTL4CommandAllocator instance, or nil if the function failed.