| 18 | #include <boost/compute/types/struct.hpp> |
| 19 | |
| 20 | struct Particle |
| 21 | { |
| 22 | Particle(): x(0.f), y(0.f) { } |
| 23 | Particle(float _x, float _y): x(_x), y(_y) { } |
| 24 | |
| 25 | float x; |
| 26 | float y; |
| 27 | }; |
| 28 | |
| 29 | // adapt struct for OpenCL |
| 30 | BOOST_COMPUTE_ADAPT_STRUCT(Particle, Particle, (x, y)) |
nothing calls this directly
no outgoing calls
no test coverage detected