OClCollMeshEngn: produce ambience into stimBuff frames directly

This commit is contained in:
2026-04-04 13:17:43 -04:00
parent 1c0f028de0
commit e8044a0d17
10 changed files with 101 additions and 333 deletions
+3 -3
View File
@@ -25,7 +25,7 @@ __kernel void collate(
__global uchar* assembly,
__global float* collation,
__global float* intensityBuffer,
__global float* averageIntensityBuffer,
__global float* ambienceBuffer,
uint slotStride,
uint nPointsPerSlot,
uint nDgramsPerFrame)
@@ -368,9 +368,9 @@ __kernel void collate(
// Unsupported data types are silently ignored
// Write average intensity for this work item (once at the end)
if (averageIntensityBuffer != NULL)
if (ambienceBuffer != NULL)
{
averageIntensityBuffer[slotIndex] = (validPointCount > 0) ?
ambienceBuffer[slotIndex] = (validPointCount > 0) ?
(intensitySum / (float)validPointCount) : 0.0f;
}
}