Contents

makeCommandAllocator(descriptor:)

Creates a new command allocator from a command allocator descriptor.

Declaration

func makeCommandAllocator(descriptor: MTL4CommandAllocatorDescriptor) throws -> any MTL4CommandAllocator

Parameters

Return Value

A MTL4CommandAllocator instance, or nil if the function failed.