OClCollMeshEngn: hide StagingBuffer's firstSlotOffset

This commit is contained in:
2025-11-20 01:48:59 -04:00
parent 51d2a70a3f
commit e233dc51d6
4 changed files with 13 additions and 38 deletions
+4 -2
View File
@@ -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;
}