Buffer
- class Buffer(buffer: Buffer)
Represents a buffer that is used to save data on host CPU and Houmo device.
Constructor for the Buffer class.
Methods
Constructor for the Buffer class.
Creates a copy of the current
Bufferobject.Copies data from host memory to the buffer on Houmo device.
Copies data from the buffer on Houmo device to host memory.
Retrieves the logical device ID of the Houmo device associated with the current
Bufferobject.Retrieves a sub-buffer that shares the same memory as the original buffer.
Initializes the specified region of the device buffer to a constant byte value.
Retrieves the size of the current
Bufferobject in bytes.