Skip to content

Instantly share code, notes, and snippets.

@gidili
Created July 7, 2013 01:50
Show Gist options
  • Save gidili/5941950 to your computer and use it in GitHub Desktop.
Save gidili/5941950 to your computer and use it in GitHub Desktop.
simplified version of clearBuffers function
__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