makeIOHandle(url:compressionMethod:)
Creates an input/output file handle instance that represents a compressed file at a URL.
Declaration
func makeIOHandle(url: URL, compressionMethod: MTLIOCompressionMethod) throws -> any MTLIOFileHandleParameters
- url:
A location URL to a compressed file in the file system.
- compressionMethod:
The file’s compression format.
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.