OClCollMeshEngn: hide StagingBuffer's firstSlotOffset
This commit is contained in:
@@ -119,12 +119,14 @@ public:
|
||||
/** EXPLANATION:
|
||||
* Returns an iovec for OpenCL engine buffer access.
|
||||
* The buffer is mmap()-allocated and suitable for CL_MEM_USE_HOST_PTR.
|
||||
* Returns pointer to first slot (offset by firstSlotOffsetNBytes) and
|
||||
* size from first slot to end of buffer.
|
||||
*/
|
||||
struct iovec getClEngineIovec() const
|
||||
{
|
||||
struct iovec iov;
|
||||
iov.iov_base = buffer.get();
|
||||
iov.iov_len = bufferNBytes;
|
||||
iov.iov_base = buffer.get() + firstSlotOffsetNBytes;
|
||||
iov.iov_len = bufferNBytes - firstSlotOffsetNBytes;
|
||||
return iov;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user