From 93a3f005480effe48513e7bc81161db1adc43f32 Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Mon, 28 Oct 2024 11:09:12 -0400 Subject: move --- balls.cl | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'balls.cl') diff --git a/balls.cl b/balls.cl index 6400bca..0c235c1 100644 --- a/balls.cl +++ b/balls.cl @@ -1,5 +1,13 @@ #define RADIUS 0.15f +__kernel void +move(__global float2 *positions, __global float2 *velocities) { + size_t id; + + id = get_global_id(0); + positions[id] += velocities[id]; +} + __kernel void genVertices(__global float2 *positions, __global float2 *vertices) { size_t ball, nsegs; -- cgit v1.2.3