MCPcopy Create free account
hub / github.com/boostorg/compute / Particle

Class Particle

test/test_sort.cpp:20–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18#include <boost/compute/types/struct.hpp>
19
20struct 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
30BOOST_COMPUTE_ADAPT_STRUCT(Particle, Particle, (x, y))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected