| /third_party/flutter/skia/modules/particles/src/ |
| D | SkParticleDrawable.cpp | 8 #include "modules/particles/include/SkParticleDrawable.h" 17 #include "modules/particles/include/SkParticleData.h" 40 DrawAtlasArrays(const SkParticles& particles, int count, SkPoint center) in DrawAtlasArrays() 45 particles.fData[SkParticles::kColorR].get(), in DrawAtlasArrays() 46 particles.fData[SkParticles::kColorG].get(), in DrawAtlasArrays() 47 particles.fData[SkParticles::kColorB].get(), in DrawAtlasArrays() 48 particles.fData[SkParticles::kColorA].get(), in DrawAtlasArrays() 52 particles.fData[SkParticles::kPositionX].get(), in DrawAtlasArrays() 53 particles.fData[SkParticles::kPositionY].get(), in DrawAtlasArrays() 56 particles.fData[SkParticles::kHeadingX].get(), in DrawAtlasArrays() [all …]
|
| /third_party/skia/modules/particles/src/ |
| D | SkParticleDrawable.cpp | 8 #include "modules/particles/include/SkParticleDrawable.h" 18 #include "modules/particles/include/SkParticleData.h" 42 DrawAtlasArrays(const SkParticles& particles, int count, SkPoint center) in DrawAtlasArrays() 47 particles.fData[SkParticles::kColorR].get(), in DrawAtlasArrays() 48 particles.fData[SkParticles::kColorG].get(), in DrawAtlasArrays() 49 particles.fData[SkParticles::kColorB].get(), in DrawAtlasArrays() 50 particles.fData[SkParticles::kColorA].get(), in DrawAtlasArrays() 54 particles.fData[SkParticles::kPositionX].get(), in DrawAtlasArrays() 55 particles.fData[SkParticles::kPositionY].get(), in DrawAtlasArrays() 58 particles.fData[SkParticles::kHeadingX].get(), in DrawAtlasArrays() [all …]
|
| /third_party/skia/third_party/externals/tint/test/samples/ |
| D | compute_boids.wgsl.expected.msl | 31 struct Particles { 32 /* 0x0000 */ tint_array_wrapper particles; 59 …l_GlobalInvocationID, device Particles* const tint_symbol_4, const constant SimParams* const tint_… 64 float2 vPos = (*(tint_symbol_4)).particles.arr[index].pos; 65 float2 vVel = (*(tint_symbol_4)).particles.arr[index].vel; 77 pos = float2((*(tint_symbol_4)).particles.arr[i].pos).xy; 78 vel = float2((*(tint_symbol_4)).particles.arr[i].vel).xy; 112 (*(tint_symbol_6)).particles.arr[index].pos = vPos; 113 (*(tint_symbol_6)).particles.arr[index].vel = vVel; 116 …oid comp_main(device Particles* tint_symbol_7 [[buffer(1)]], const constant SimParams* tint_symbol…
|
| D | compute_boids.wgsl.expected.wgsl | 30 struct Particles { 31 particles : array<Particle, 5>; 36 [[binding(1), group(0)]] var<storage, read_write> particlesA : Particles; 38 [[binding(2), group(0)]] var<storage, read_write> particlesB : Particles; 46 var vPos : vec2<f32> = particlesA.particles[index].pos; 47 var vVel : vec2<f32> = particlesA.particles[index].vel; 59 pos = particlesA.particles[i].pos.xy; 60 vel = particlesA.particles[i].vel.xy; 94 particlesB.particles[index].pos = vPos; 95 particlesB.particles[index].vel = vVel;
|
| D | compute_boids.wgsl | 52 [[block]] struct Particles { 53 particles : array<Particle, 5>; 57 [[binding(1), group(0)]] var<storage, read_write> particlesA : Particles; 58 [[binding(2), group(0)]] var<storage, read_write> particlesB : Particles; 69 var vPos : vec2<f32> = particlesA.particles[index].pos; 70 var vVel : vec2<f32> = particlesA.particles[index].vel; 85 pos = particlesA.particles[i].pos.xy; 86 vel = particlesA.particles[i].vel.xy; 132 particlesB.particles[index].pos = vPos; 133 particlesB.particles[index].vel = vVel;
|
| D | compute_boids.wgsl.expected.glsl | 121 Particle particles[5]; 124 Particle particles[5]; 136 vec2 vPos = particlesA.particles[index].pos; 137 vec2 vVel = particlesA.particles[index].vel; 150 pos = particlesA.particles[i].pos.xy; 151 vel = particlesA.particles[i].vel.xy; 186 particlesB.particles[index].pos = vPos; 187 particlesB.particles[index].vel = vVel;
|
| D | compute_boids.wgsl.expected.spvasm | 30 OpName %Particles "Particles" 31 OpMemberName %Particles 0 "particles" 78 OpDecorate %Particles Block 79 OpMemberDecorate %Particles 0 Offset 0 111 %Particles = OpTypeStruct %_arr_Particle_uint_5 112 %_ptr_StorageBuffer_Particles = OpTypePointer StorageBuffer %Particles
|
| /third_party/flutter/skia/third_party/externals/sdl/Xcode-iOS/Demos/src/ |
| D | fireworks.c | 15 #define MAX_PARTICLES 2000 /* maximum number of particles displayed at once */ 22 …tter - this particle flies up, shooting off trail particles, then finally explodes into dust parti… 45 } particles[MAX_PARTICLES]; /* this array holds all our particles */ variable 81 struct particle *slot = particles; in stepParticles() 82 struct particle *curr = particles; in stepParticles() 148 /* the number of active particles is computed as the difference between in stepParticles() 149 old number of active particles, where slot points, and the in stepParticles() 150 new size of the array, where particles points */ in stepParticles() 151 num_active_particles = (int) (slot - particles); in stepParticles() 155 This draws all the particles shown on screen [all …]
|
| /third_party/flutter/skia/tools/ |
| D | cpu_modules.cpp | 8 #include "modules/particles/include/SkParticleDrawable.h" 9 #include "modules/particles/include/SkParticleEffect.h" 10 #include "modules/particles/include/SkParticleSerialization.h" 11 #include "modules/particles/include/SkReflected.h" 13 // Doesn't do anything important; just exists to show we can use modules/particles without the GPU
|
| /third_party/skia/site/docs/user/modules/ |
| D | particles.md | 3 title: "Particles" 4 linkTitle: "Particles" 12 drawing primitives with dynamic, animated behavior. Particles can be used to 45 <a href="https://particles.skia.org/?nameOrHash=@cube" 52 <a href="https://particles.skia.org/?nameOrHash=@confetti" 59 <a href="https://particles.skia.org/?nameOrHash=@spiral" 66 <a href="https://particles.skia.org/?nameOrHash=@fireworks" 73 <a href="https://particles.skia.org/?nameOrHash=@text" 87 locate_file = 'https://particles.skia.org/dist/'; 120 const particles = CanvasKit.MakeParticles(JSON.stringify(jsonData)); [all …]
|
| /third_party/flutter/glfw/examples/ |
| D | CMakeLists.txt | 34 add_executable(particles WIN32 MACOSX_BUNDLE particles.c ${ICON} ${TINYCTHREAD} ${GETOPT} ${GLAD}) target 39 target_link_libraries(particles "${CMAKE_THREAD_LIBS_INIT}" "${RT_LIBRARY}") 41 set(WINDOWS_BINARIES boing gears heightmap particles simple splitview wave) 55 set_target_properties(particles PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "Particles")
|
| D | particles.c | 95 mtx_t particles_lock; // Particles data sharing mutex 150 // Maximum number of particles 194 // Global vectors holding all particles. We use two vectors for double 196 static PARTICLE particles[MAX_PARTICLES]; variable 227 printf("Usage: particles [-bfhs]\n"); in usage() 320 // Particles should bounce on the fountain (with friction) in update_particle() 330 // Particles should bounce on the floor (with friction) in update_particle() 350 // Update particles (iterated several times per frame if dt is too large) in particle_engine() 357 update_particle(&particles[i], dt2); in particle_engine() 369 if (!particles[i].active) in particle_engine() [all …]
|
| /third_party/boost/libs/compute/example/ |
| D | nbody.cpp | 79 NBodyWidget(std::size_t particles, float dt, QWidget* parent = 0); 105 NBodyWidget::NBodyWidget(std::size_t particles, float dt, QWidget* parent) in NBodyWidget() argument 106 : QGLWidget(parent), m_initial_draw(true), m_particles(particles), m_dt(dt) in NBodyWidget() 179 // do not update particles in paintGL() 182 // update particles in paintGL() 194 // enqueue kernels to update particles and make sure that the command queue is finished in updateParticles() 214 ("particles", po::value<uint_>()->default_value(1000), "number of particles") in main() 225 const uint_ particles = vm["particles"].as<uint_>(); in main() local 229 NBodyWidget nbody(particles, dt); in main()
|
| /third_party/flutter/skia/modules/canvaskit/ |
| D | particles_bindings.cpp | 11 #include "modules/particles/include/SkParticleDrawable.h" 12 #include "modules/particles/include/SkParticleEffect.h" 13 #include "modules/particles/include/SkParticleSerialization.h" 22 EMSCRIPTEN_BINDINGS(Particles) { in EMSCRIPTEN_BINDINGS() argument 44 constant("particles", true); in EMSCRIPTEN_BINDINGS()
|
| /third_party/skia/third_party/externals/dawn/examples/ |
| D | ComputeBoids.cpp | 166 [[block]] struct Particles { in initSim() 167 particles : array<Particle>; in initSim() 170 [[binding(1), group(0)]] var<storage, read> particlesA : Particles; in initSim() 171 [[binding(2), group(0)]] var<storage, read_write> particlesB : Particles; in initSim() 180 var vPos : vec2<f32> = particlesA.particles[index].pos; in initSim() 181 var vVel : vec2<f32> = particlesA.particles[index].vel; in initSim() 195 pos = particlesA.particles[i].pos.xy; in initSim() 196 vel = particlesA.particles[i].vel.xy; in initSim() 240 particlesB.particles[index].pos = vPos; in initSim() 241 particlesB.particles[index].vel = vVel; in initSim()
|
| /third_party/boost/libs/compute/include/boost/compute/types/ |
| D | struct.hpp | 112 /// // create vector of particles 113 /// boost::compute::vector<Particle> particles = ... 115 /// // function to compare particles by their x-coordinate 121 /// // sort particles by their x-coordinate 123 /// particles.begin(), particles.end(), sort_by_x, queue
|
| /third_party/boost/boost/compute/types/ |
| D | struct.hpp | 112 /// // create vector of particles 113 /// boost::compute::vector<Particle> particles = ... 115 /// // function to compare particles by their x-coordinate 121 /// // sort particles by their x-coordinate 123 /// particles.begin(), particles.end(), sort_by_x, queue
|
| /third_party/boost/libs/compute/test/ |
| D | test_sort.cpp | 296 // function to compare particles by their x-coordinate in BOOST_AUTO_TEST_CASE() 302 std::vector<Particle> particles; in BOOST_AUTO_TEST_CASE() local 303 particles.push_back(Particle(0.1f, 0.f)); in BOOST_AUTO_TEST_CASE() 304 particles.push_back(Particle(-0.4f, 0.f)); in BOOST_AUTO_TEST_CASE() 305 particles.push_back(Particle(10.0f, 0.f)); in BOOST_AUTO_TEST_CASE() 306 particles.push_back(Particle(0.001f, 0.f)); in BOOST_AUTO_TEST_CASE() 309 boost::compute::copy(particles.begin(), particles.end(), vector.begin(), queue); in BOOST_AUTO_TEST_CASE() 321 boost::compute::copy(vector.begin(), vector.end(), particles.begin(), queue); in BOOST_AUTO_TEST_CASE() 322 BOOST_CHECK_CLOSE(particles[0].x, -0.4f, 0.1); in BOOST_AUTO_TEST_CASE() 323 BOOST_CHECK_CLOSE(particles[1].x, 0.001f, 0.1); in BOOST_AUTO_TEST_CASE() [all …]
|
| /third_party/flutter/skia/third_party/externals/dawn/examples/ |
| D | ComputeBoids.cpp | 167 Particle particles[1000]; in initSim() 171 Particle particles[1000]; in initSim() 180 vec2 vPos = particlesA.particles[index].pos; in initSim() 181 vec2 vVel = particlesA.particles[index].vel; in initSim() 193 pos = particlesA.particles[i].pos.xy; in initSim() 194 vel = particlesA.particles[i].vel.xy; in initSim() 229 particlesB.particles[index].pos = vPos; in initSim() 232 particlesB.particles[index].vel = vVel; in initSim()
|
| /third_party/skia/modules/particles/include/ |
| D | SkParticleEffect.h | 17 #include "modules/particles/include/SkParticleData.h" 41 // Maximum number of particles per instance of the effect 54 // float rate; // Rate to generate new particles (particles / second) 55 // int burst; // Number of particles to emit in a single update 59 // // default values for new particles. 216 // Properties that determine default values for new particles
|
| /third_party/skia/gm/ |
| D | particles.cpp | 10 #if !defined(SK_BUILD_FOR_GOOGLE3) // Google3 doesn't build particles module 14 #include "modules/particles/include/SkParticleEffect.h" 15 #include "modules/particles/include/SkParticleSerialization.h" 45 auto jsonData = GetResourceAsData(SkStringPrintf("particles/%s.json", fName).c_str()); in onOnceBeforeDraw()
|
| /third_party/flutter/skia/modules/canvaskit/canvaskit/ |
| D | extra.html | 26 <h2> Particles </h2> 27 <canvas id=particles width=500 height=500></canvas> 173 const surface = CanvasKit.MakeCanvasSurface('particles'); 181 const particles = CanvasKit.MakeParticles(JSON.stringify(snowfall)); 182 particles.start(Date.now() / 1000.0, true); 187 particles.update(Date.now() / 1000.0); 188 particles.draw(canvas);
|
| /third_party/skia/tools/ |
| D | cpu_modules.cpp | 8 #include "modules/particles/include/SkParticleEffect.h" 10 // Doesn't do anything important; just exists to show we can use modules/particles without the GPU
|
| /third_party/flutter/skia/tools/viewer/ |
| D | ParticlesSlide.cpp | 10 #include "modules/particles/include/SkParticleDrawable.h" 11 #include "modules/particles/include/SkParticleEffect.h" 12 #include "modules/particles/include/SkParticleSerialization.h" 13 #include "modules/particles/include/SkReflected.h" 209 fName = "Particles"; in ParticlesSlide() 231 this->loadEffects(GetResourcePath("particles").c_str()); in load() 245 static SkString dirname = GetResourcePath("particles"); in draw()
|
| /third_party/flutter/skia/modules/particles/include/ |
| D | SkParticleDrawable.h | 11 #include "modules/particles/include/SkReflected.h" 22 virtual void draw(SkCanvas* canvas, const SkParticles& particles, int count,
|