Contents

makeIOHandle(url:)

Creates an input/output file handle instance that represents a file at a URL.

Declaration

func makeIOHandle(url: URL) throws -> any MTLIOFileHandle

Parameters

  • url:

    The URL to a resource file in the file system.

Return Value

A new MTLIOFileHandle instance if the method completes successfully; otherwise Swift throws an error and Objective-C returns nil.

Discussion

For information about using input/output command queues and file handles, see Resource loading.

See Also

Creating I/O file handles