load(_:offset:size:sourceHandle:sourceHandleOffset:)
Encodes a command that loads data from a file handle into a GPU buffer.
Declaration
func load(_ buffer: any MTLBuffer, offset: Int, size: Int, sourceHandle: any MTLIOFileHandle, sourceHandleOffset: Int)Parameters
- buffer:
A buffer instance the method loads data into.
- offset:
A starting location relative to the beginning of the buffer, in bytes, the method copies data to.
- size:
The number of bytes the method loads from the file into the buffer.
- 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.