|
|
|
|
|
|
// sort lights |
|
|
|
SORTLIST(lightsListLDS, iNrCoarseLights, MAX_NR_BIGTILE_LIGHTS_PLUSONE, t, NR_THREADS); |
|
|
|
|
|
|
|
lightOffs = 0; |
|
|
|
if(t==0) lightOffs = 0; |
|
|
|
GroupMemoryBarrierWithGroupSync(); |
|
|
|
for(int i=t; i<iNrCoarseLights; i+=NR_THREADS) if(lightsListLDS[i]<g_iNrVisibLights) InterlockedAdd(lightOffs, 1); |
|
|
|
GroupMemoryBarrierWithGroupSync(); |
|
|
|