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
+1 -3
View File
@@ -25,7 +25,6 @@ __kernel void collate(
__global uchar* assembly,
__global float* collation,
uint slotStride,
uint firstSlotOffset,
uint nPointsPerSlot,
uint nDgramsPerFrame)
{
@@ -36,8 +35,7 @@ __kernel void collate(
if (slotIndex >= nDgramsPerFrame) { return; }
// Calculate slot address
__global uchar* slotStart = assembly + firstSlotOffset
+ (slotIndex * slotStride);
__global uchar* slotStart = assembly + (slotIndex * slotStride);
// Read data_type from offset 9 (1 byte)
uchar dataType = slotStart[9];