FastLED 3.9.15
Loading...
Searching...
No Matches

◆ FL_ALIGNAS() [1/5]

struct fl::FL_ALIGNAS ( 16 )

Combined sin+cos result for 4 angles (raw SIMD primitives)

Definition at line 1 of file chasing_spiral_state.h.

23 {
24 // SoA pixel geometry — built once when grid size changes, reused every frame.
25 // Each array has `count` valid entries, padded to the next multiple of 4
26 // (so SIMD loads never read past the allocation).
27 fl::vector<fl::i32> base_angle; // 3*theta - dist/3, raw s16x16
28 fl::vector<fl::i32> dist_scaled; // distance * 0.1, raw s16x16
29 fl::vector<fl::i32> rf3; // 3 * radial_filter, raw s16x16 (red)
30 fl::vector<fl::i32> rf_half; // radial_filter / 2, raw s16x16 (green)
31 fl::vector<fl::i32> rf_quarter; // radial_filter / 4, raw s16x16 (blue)
32 fl::vector<fl::u16> pixel_idx; // pre-mapped xyMap(x,y) LED index
33 int count = 0;
34
35 // Perlin fade LUT (257 entries, Q8.24 format).
36 // FL_ALIGNAS(16): enables aligned SIMD loads in pnoise2d_raw_simd4_vec.
37 FL_ALIGNAS(16) fl::i32 fade_lut[257];
38 bool fade_lut_initialized = false;
39
40 ChasingSpiralState() : fade_lut{}, fade_lut_initialized(false) {}
41};
Base definition for an LED controller.
Definition crgb.hpp:179
#define FL_ALIGNAS(N)

References FL_ALIGNAS(), and FL_ALIGNAS.

+ Here is the call graph for this function: