Created
July 7, 2013 01:50
-
-
Save gidili/5941950 to your computer and use it in GitHub Desktop.
simplified version of clearBuffers function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__kernel void clearBuffers( | |
__global float2 * neighborMap, | |
int PARTICLE_COUNT | |
) | |
{ | |
int id = get_global_id( 0 ); | |
if( id >= PARTICLE_COUNT )return; | |
float2 initVector = (float2)( -1, -1); | |
neighborMap[id] = initVector; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment