loadBytes(_:size:sourceHandle:sourceHandleOffset:)
Encodes a command that loads data from a file handle into CPU-accessible memory buffer.
Declaration
func loadBytes(_ pointer: UnsafeMutableRawPointer, size: Int, sourceHandle: any MTLIOFileHandle, sourceHandleOffset: Int)Parameters
- pointer:
A pointer to memory the method loads data into.
- size:
The number of bytes the method loads from the file.
- sourceHandle:
A handle to a source file.
- sourceHandleOffset:
A starting location relative to the beginning of the file, in bytes, the method copies data from.